how to get a Flex text control to word wrap

I had this same problem. In my case I had a mx:Text block (that SHOULD have wrapped), and that mx:Text object was embedded within TWO mx:VBox containers.

The only way that I got the text to wrap successfully was to do BOTH of the following:

  1. put the ‘ width=”100%” ‘ property into EACH VBox container (in which the mx:text resided).
  2. put the ‘ width=”100%” ‘ property into EACH mx:Text object (residing within this nesting of VBox’s)

Very non-intuitive, but this is what worked for me.

I hope this helps you!

Jon Kinsting

Leave a Comment