4 Replies Latest reply on Nov 9, 2011 1:03 AM by PaddyMc2010

    s:TextInput right align problem

    PaddyMc2010

      Hi all,

       

      i have found that im having a problem when trying to use the s:TextInput with right aligned text.  This is being used as part of a title window inside a groupbox.  For whatever reason it appears that the text does not appear to bind to the actual textInput box.  Text with aligned to the left is fine.  im sure there is a setting that i am missing but would appreciate some advise as regards.  Text should be left to right direction but right aligned. so when adding it would disappear to the left if larger than the box.  Not as the below like is happening now.

      textbox.JPG

       

      Thanks in advance

       

      P

        • 1. Re: s:TextInput right align problem
          kevinklin Adobe Employee

          Please post a small test case, and some context for your TextInput.

          • 2. Re: s:TextInput right align problem
            PaddyMc2010 Level 1

            The text input im using is as below.  My Input is just big enough for the text LastName but if i added a name with more letters i would get the output as per the box above with letters outside the input box and stuck on the working groupbox?

             

            <s:TextInput id="mytextinput" width="50%" editable="true" text="LastName" textAlignLast="left" textAlign="right"

            />

            • 3. Re: s:TextInput right align problem
              kevinklin Adobe Employee

              What does the container around it look like?

              • 4. Re: s:TextInput right align problem
                PaddyMc2010 Level 1

                the container around the textbox is a custom group box. 

                 

                 

                <custom:GroupBox label="LastName" skinClass="skins.GroupBoxLegendSkin" height="75" width="50%" fontWeight="normal" fontStyle="normal"/>

                 

                Which is 

                 

                public class GroupBox extends SkinnableContainer  {

                                                private var _label : String;

                                                public function GroupBox() {

                                                                super();

                                                }

                                               

                                                public function get label():String {

                                                                return _label;

                                                }

                                               

                                                public function set label(value:String):void {

                                                                _label = value;                                  

                                                }                             

                                }

                }