I believe you have to sent an explicit pixel width on a Text component for
it to wrap, kind of a bummer if you want it to stretch but still wrap. The
Flex docs describe the behavior:

If you specify a pixel value for both the height and width properties, any
text that exceeds the size of the control is clipped at the border.

If you specify an explicit pixel width, but no height, Flex wraps the text
to fit the width and calculates the height to fit the required number of
lines.

If you specify a percentage-based width and no height, Flex does not wrap
the text, and the height equals the number of lines as determined by the
number of Return characters.

If you specify only a height and no width, the height value does not affect
the width calculation, and Flex sizes the control to fit the width of the
maximum line.

Rachel

On 11/17/06, Paul Hastings <[EMAIL PROTECTED]> wrote:

On 11/17/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
>         <mx:Text text="{data.label}" fontSize="8" fontStyle="normal"
> fontWeight="normal" textAlign="left" textDecoration="none"
> selectable="false" id="legendText"/>
> </mx:HBox>

sort of fixed this by setting a percent width on the text bit,
wrapping works until you scroll past the word wrapped rows then those
rows' text is simply truncated.

any ideas?

thanks.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





Reply via email to