我有一个 mx:Form 包含两个 FormItems。默认情况下,FormItems 垂直放置在另一个之上,但由于空间限制,我想将两个 FormItems 并排放置。我该怎么做?我的另一个选择是仅使用纯标签和文本字段,但我想利用 mx:Form 容器提供的功能。我有以下代码垂直放置数据:
<mx:HBox width="100%"
horizontalAlign="center">
<mx:Label text="Info"/>
</mx:HBox>
<mx:Form id="InfoForm">
<mx:FormItem label="Info1"
horizontalAlign="center"
paddingLeft="45"
required="true"
direction="vertical">
<mx:TextInput id="Info1TextInput"/>
</mx:FormItem>
<mx:FormItem label="Info2"
horizontalAlign="center"
paddingLeft="45"
required="true"
direction="vertical">
<mx:TextInput id="Info2TextInput"/>
</mx:FormItem>
</mx:Form>
非常感谢!