2004-11-11 15:08 Alexander Malmberg <alexander@malmberg.org>

* Source/NSCell.m (-_setupTextWithFrame:inView:editor:): Reduce the
	maximum size. Explicitly set the size of the text view, and make it
	not resizable.
	* Source/NSLayoutManager.m (-rectArrayForGlyphRange:
	withinSelectedGlyphRange:inTextContainer:rectCount:): Fix check for
	whether the starting index is inside a line frag rect.
	* Source/NSTextView.m (-sizeToFit): Don't increase the size if we
	have no inset.
	(-updateInsertionPointStateAndRestartTimer:): Force the insertion
	point rect to be inside the text view.
	(-scrollRangeToVisible:): If we are a non-rich-text field editor,
	adjust the scrolling to make the auto-scrolling more useful.

	Fixes bug #9279.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20340 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2004-11-11 14:10:08 +00:00
parent bb3c8c0500
commit 7c48004c48
4 changed files with 149 additions and 23 deletions

View file

@ -269,7 +269,7 @@ container? necessary? */
while (1)
{
/* Determine the starting x-coordinate for this line frag rect. */
if (lf->pos < glyphRange.location)
if (lf->pos <= glyphRange.location)
{
/*
The start index is inside the line frag rect, so we need to