The project is mobile flex. I placed a label and a textinput inside a vgroup container :
<s:VGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="center">
<s:HGroup>
<s:Label id="l_url" text="url"/>
<s:TextInput id="url" invalid="url.getFocus()"/>
</s:HGroup>
<s:HGroup>
<s:Button label="Enregistrer" click="enregistrer(event)" styleName="" />
<s:Button label="Annuler" click="navigator.popView()"/>
</s:HGroup>
</s:VGroup>
In runtime the label's text is at the top of the label :
How to place the label's text to center vertically ?
Looks like you're missing a verticalAlign="middle" in your HGroup.
Also I don't usually use form containers, but since you're only doing a mobile UI that might be a good suggestion to look into here if you don't mind the limitations.