actionscript 3 - Flex 4 - How to align FormItem Label and TextInput? -


i have formitem label , textinput controls.

sample code

    <s:formitem id="mobilelabel" label="mobile number">         <s:textinput id="mobileinput"/>     </s:formitem>     <s:formitem id="emaillabel" label="email id" required="true">         <s:hgroup>             <s:textinput id="emailinput"/>             <s:label id="bindinglabel" text="@xyz.com"/>         </s:hgroup>      </s:formitem> 

output this:

enter image description here

how align label text bottom of label? this

enter image description here

you can use hgroup's proberty verticalalign. hgroup statement like:

<s:hgroup verticalalign="middle">   <s:textinput id="emailinput"/>   <s:label id="bindinglabel" text="@xyz.com"/> </s:hgroup>  

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -