Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex s:在同一中心上成组排列元件_Apache Flex_Flex4_Air - Fatal编程技术网

Apache flex s:在同一中心上成组排列元件

Apache flex s:在同一中心上成组排列元件,apache-flex,flex4,air,Apache Flex,Flex4,Air,我使用s:Group将组件放置在表单中。 我希望所有表单项在组内具有相同的水平对齐。 我尝试使用值为0的horizontalcenter,但它不起作用。 所以我不知道怎么做,我希望你能帮我解决这个问题 <s:Group width="100%" resizeMode="noScale" verticalCenter="0" horizontalCenter="0"> <s:FormItem label="Naissance"

我使用s:Group将组件放置在表单中。 我希望所有表单项在组内具有相同的水平对齐。 我尝试使用值为0的horizontalcenter,但它不起作用。 所以我不知道怎么做,我希望你能帮我解决这个问题

<s:Group width="100%" resizeMode="noScale" verticalCenter="0" horizontalCenter="0">


                        <s:FormItem label="Naissance" tabIndex="5" x="{cbQualite.x}" id="fiNaissance">
                            <mx:DateField id="dfNaissance" width="100" editable="true" 
                                          formatString="DD/MM/YYYY" yearNavigationEnabled="true"
                                          />
                        </s:FormItem>
                        <s:RadioButton id="rbFem" label="Féminin" group="{rbsex}" tabIndex="7" 
                                       x="{fiNaissance.x + fiNaissance.width+5}" 
                                       />

                        <s:RadioButton id="rbMas" label="Masculin" group="{rbsex}" tabIndex="6" x="{rbFem.width + rbFem.x + 5}" y="{fiNaissance.y +(fiNaissance.height)/2}"/>
                        <s:DropDownList id="cbDossier2" dataProvider="{DP_PAT_DOS1}" width="118" height="22" tabIndex="8" x="{cbDossier1.x}"/>
                        <s:FormItem label="" tabIndex="9" x="{fiDossier1.x}" >
                            <s:TextInput id="fDossier2" width="90" paddingRight="5" text="@{objectPatient.paDossier2}" />
                        </s:FormItem>

                    </s:Group>


将表单的所有部分放在表单项中,并将所有表单项放在表单中。

相同的水平对齐是什么意思

如果希望组中的元素水平居中,则必须将horizontalCenter=“0”放在每个子元素上,而不是放在父元素上

此外,在组上同时指定width=“100%”和horizontalCenter=“0”是错误的。
width=“100%”表示如果父容器布局支持,您的组将占用父容器中的所有水平空间。您的组将自动居中。

您的内容没有清晰的视觉效果,如果添加了屏幕截图,请进行编辑。那可能很清楚,我希望我所有的组件的水平中心都在同一个y位置。谢谢