문제

I have the FormItem with Label and 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 like this:

enter image description here

How to align the label text as bottom of the label? like this

enter image description here

도움이 되었습니까?

해결책

You can use the HGroup's proberty verticalAlign. Then your HGroup statement will look like:

<s:HGroup verticalAlign="middle">
  <s:TextInput id="emailInput"/>
  <s:Label id="bindingLabel" text="@xyz.com"/>
</s:HGroup> 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top