On 3/14/13 3:19 PM, "Harbs" <[email protected]> wrote:
> I have a custom TLF container which sometimes has the width constrained. The
> width sometimes expands a little beyond the constrained boundaries while
> typing. (up to 10 pixels or so)
>
> It only happens on words that don't quite break. INstead of being moved to the
> next line, the container expands. Once the word breaks to the next line, the
> container snaps back to the specified width. (I'm using Flex 4.9.0).
>
> Shouldn't this code cause the container to never be wider than the specified
> width?
>
> controller.setCompositionSize(value,controller.compositionHeight);
Makes sense, but if this is a Flex app, is other code changing the measured
size?
How do you know the container is expanding vs the textlines just overrunning
the right edge?
I think TLF has a notion of "damage" before re-composition so maybe the
input gets reflected to the screen before there is composition. In fact, I
think they compose on frame events instead of input events for performance
reasons.
--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui