(-usedRectForTextContainer:): Don't add the extra line frag rect.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16118 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-03-03 18:32:55 +00:00
parent 017c2515c7
commit df47a8fe60
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,13 @@
2003-03-03 19:26 Alexander Malmberg <alexander@malmberg.org>
* Source/GSLayoutManager.m (-usedRectForTextContainer:): Don't add
the extra line frag rect.
* Source/NSTextView.m (-sizeToFit): Add the extra line frag rect
when computing the size of the view.
(-scrollRangeToVisible:): Reimplement using the new insertion point
positioning methods.
2003-03-03 16:17 Alexander Malmberg <alexander@malmberg.org>
* Source/GSHorizontalTypesetter.m (-layoutGlyphsInLayoutManager:

View file

@ -2153,11 +2153,6 @@ forStartOfGlyphRange: (NSRange)glyphRange
for (i = 0, lf = tc->linefrags; i < tc->num_linefrags; i++, lf++)
used = NSUnionRect(used, lf->used_rect);
if (container == extra_textcontainer)
{
used = NSUnionRect(used, extra_used_rect);
}
return used;
}