1 Reply Latest reply on Dec 24, 2012 12:43 AM by huangxinghui

    Negative number wordwrap problem

    huangxinghui Level 1

      Version: Flex SDK3.5

       

      Example code:

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFFFFFF">
       <mx:Text id="message" width="280"
          text="The hzy_text should be integer between -2147483648 and 2147483647. Please input again."/>
      </mx:Application>
      

       

      it wraps "-2147483648" to "-" "2147483648"

      Unnamed.jpg

       

      how to control not wrap the negative number.

       

      Best regards!

       

      Huang

        • 1. Re: Negative number wordwrap problem
          huangxinghui Level 1

          when i change to use spark, it's right.

           

          But i use sdk3.5, can not use spark components, how to solve this problem in mx?

           

          Thanks for any help!

           

          Example code:

           

           

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFFFFFF" 
              xmlns:s="library://ns.adobe.com/flex/spark">
           <s:TextArea width="280" height="200"
              text="The hzy_text should be integer between -2147483648 and 2147483647. Please input again."/>
           <mx:TextArea width="280" height="200"
              text="The hzy_text should be integer between -2147483648 and 2147483647. Please input again."/>
          </mx:Application>
          

           

          The screenshot:

           

          Unnamed.jpg