[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #21696] [NSText sizeToFit] resizes only to include the first charac
From: |
Fred Kiefer |
Subject: |
[bug #21696] [NSText sizeToFit] resizes only to include the first character |
Date: |
Thu, 27 Dec 2007 16:30:45 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko) SUSE |
Follow-up Comment #1, bug #21696 (project gnustep):
I spend some time tracking down this problem and as far as I can tell it is
caused by GSHorizontalTypesetter. There in the method layoutLineNewParagraph:
we get a rectangle for the next set of glyphs and this is already limited by
the text container size. In our case the text container has a size of (1, 15)
and we and up with an almost empty rectangle to layout into.
What happens is that the first character already overlaps and it tries to
break the line. As this fails the rest of the characters as set to invisible
and a wrong rectangle gets computed.
I don't have a glue how to solve this. One way would be to already report the
text container size differently, when it is resizesable. Or use this
information in some other way here. But the whole code looks rather fragile
and I dare not touch it.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?21696>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/