how to get a Flex text control to word wrap

后端 未结 9 2057
生来不讨喜
生来不讨喜 2020-12-29 02:50

I\'m creating an Adobe Flex application and I have a Text control (mx:Text), which is supposedly used when you need multiline noneditable text (as opposed to a Label, which

9条回答
  •  再見小時候
    2020-12-29 03:19

    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

提交回复
热议问题