Home > Uncategorized > Word-wrap on a Flex field component

Word-wrap on a Flex field component

September 24th, 2009

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. :)

  1. wal
    October 11th, 2009 at 00:25 | #1

    Just do this in your code:

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

    • October 11th, 2009 at 17:44 | #2

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

  1. No trackbacks yet.