Apache flex flex V4组中丢弃的水平中心参数
无论我在“浏览”按钮的horizontalCenter属性中输入了什么值,它都会跟随VGroup的horizontalAlign属性。为什么呢 谢谢Apache flex flex V4组中丢弃的水平中心参数,apache-flex,layout,Apache Flex,Layout,无论我在“浏览”按钮的horizontalCenter属性中输入了什么值,它都会跟随VGroup的horizontalAlign属性。为什么呢 谢谢 <s:Group width="100%" height="100%" left="0" right="0" top="0" bottom="0"> <s:Panel id="mainPanel" title="File uploader" width="75%" height="75%" horizontalCenter
<s:Group width="100%" height="100%" left="0" right="0" top="0" bottom="0">
<s:Panel id="mainPanel" title="File uploader" width="75%" height="75%" horizontalCenter="0" verticalCenter="0">
<s:controlBarContent> <s:Label text="foo"/> </s:controlBarContent>
<mx:HDividedBox width="100%" height="100%">
<s:VGroup width="25%" height="100%" paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10">
<s:TextArea width="100%" height="100%" />
<s:Button label="Browse" horizontalCenter="30"/>
</s:VGroup>
<s:TextArea width="100%" height="100%" />
</mx:HDividedBox>
</s:Panel>
</s:Group>
Flex 4中的VGroup使用不考虑水平中心/垂直中心的VGroup:/。我自己也不喜欢这样
但由于VGroup的子文本区域为100%宽度/高度,因此可以使用VerticalLayout/VGrouphorizontalAlign
属性:horizontalAlign=“center”
。这是有效的:
Flex 4中的VGroup使用不考虑水平中心/垂直中心的VGroup:/。我自己也不喜欢这样
但由于VGroup的子文本区域为100%宽度/高度,因此可以使用VerticalLayout/VGrouphorizontalAlign
属性:horizontalAlign=“center”
。这是有效的:
<s:Group width="100%" height="100%" left="0" right="0" top="0" bottom="0">
<s:Panel id="mainPanel" title="File uploader" width="75%" height="75%" horizontalCenter="0" verticalCenter="0">
<s:controlBarContent>
<s:Label text="foo"/>
</s:controlBarContent>
<mx:HDividedBox width="100%" height="100%">
<s:VGroup width="25%" height="100%" paddingLeft="10" horizontalAlign="center" paddingRight="10" paddingTop="10" paddingBottom="10">
<s:TextArea width="100%" height="100%" />
<s:Button label="Browse" horizontalCenter="30"/>
</s:VGroup>
<s:TextArea width="100%" height="100%" />
</mx:HDividedBox>
</s:Panel>
</s:Group>