Word-wrap on a Flex field component

Make sure that you set the width of your field explicitly, or there will be no word wrap for you.

Some other guys found another workaround that gets around explicit widths, but it also looks fragile.

Anyway, if this comes up in a google search, I’ll have saved someone else some time. :)

2 Responses to “Word-wrap on a Flex field component”

  1. wal October 11, 2009 at 12:25 am #

    Just do this in your code:

    textField.setStyle(”textField.wordWrap“,”textField.wordWrap”);

    • admin October 11, 2009 at 5:44 pm #

      Woah, really? That’s awesome. Thanks Wal! :)

Leave a Reply