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 flex V4组中丢弃的水平中心参数_Apache Flex_Layout - Fatal编程技术网

Apache flex flex V4组中丢弃的水平中心参数

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

无论我在“浏览”按钮的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="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/VGroup
horizontalAlign
属性:
horizontalAlign=“center”
。这是有效的:


Flex 4中的VGroup使用不考虑水平中心/垂直中心的VGroup:/。我自己也不喜欢这样

但由于VGroup的子文本区域为100%宽度/高度,因此可以使用VerticalLayout/VGroup
horizontalAlign
属性:
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>