How to align a "Label:" followed by a RadioButtonGroup?
Please advise me, how to align Label followed by RadioButtons in Flex 4.5:
RadioTest.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
开发者_Go百科 minWidth="955" minHeight="600">
<fx:Declarations>
<s:RadioButtonGroup id="_group" itemClick=""/>
</fx:Declarations>
<s:HGroup>
<s:Label text="Playing tables:" verticalAlign="bottom" />
<s:RadioButton groupName="_group" label="All" />
<s:RadioButton groupName="_group" label="Vacant" />
<s:RadioButton groupName="_group" label="Full" />
</s:HGroup>
</s:Application>
There must be some standard approach to this...
Just add verticalAlign="baseline"
to the HGroup
:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600">
<fx:Declarations>
<s:RadioButtonGroup id="_group" itemClick=""/>
</fx:Declarations>
<s:HGroup verticalAlign="baseline">
<s:Label text="Playing tables:" verticalAlign="bottom" />
<s:RadioButton groupName="_group" label="All" />
<s:RadioButton groupName="_group" label="Vacant" />
<s:RadioButton groupName="_group" label="Full" />
</s:HGroup>
</s:Application>
精彩评论