0 Replies Latest reply on Jan 19, 2012 3:41 PM by Z4g0s

    Flex mobile TextInput Editable strange behavior

    Z4g0s

      I have a problem using textinput component with the property editable set to false, if it's not editable and I create the components without text I have a wrong layout, otherwise the layout is good...

       

      it's better to write a simple example...

       

      I have this two textinput

       

      <s:TextInput id="lblorig" color="#000000" width="350"

      fontFamily="Verdana" change="lbltrg.text = lblorig.text;" right="0"/>

       

      <s:TextInput id="lbltrg" color="#000000" editable="false"

      width="350" fontFamily="Verdana" text="" right="0"/>

       

      Writing a text in the first one will get me this result

      txt1.PNG

       

       

      If otherwise in the creation I set the text different from "" I will have a correct behaviour...

      <s:TextInput id="lbltrg" color="#000000" editable="false"

      width="350" fontFamily="Verdana" text="default text" right="0"/>

      txt2.PNG

       

      And changing the text in the first textinput will have a correct update on the not editable one..

      txt3.PNG

       

      Why is this happening? How can I fix that? I cannot set the default text different from "" so I have to find an altenative solution..

       

      Thank in advance..