开发者

Flex 4.5 - s:Group default margins?

The code below produces two groups with colored backgrounds and a margin between them. Ive tried the obvious css fixes (margin-top/bottom etc) but it seems it doesnt do any good. Does anyone know how i can do this?

    <s:VGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="cent开发者_如何学JAVAer">
        <s:Group id="topBar" width="100%" height="10%" bottom="0">
            <s:Rect width="100%" height="100%">
                <s:fill><s:SolidColor color="black" /></s:fill>
            </s:Rect>
        </s:Group>

        <s:Group id="contentBar" width="100%" height="90%" top="0">
            <s:Rect width="100%" height="100%">
                <s:fill><s:SolidColor color="red" /></s:fill>
            </s:Rect>
        </s:Group>
    </s:VGroup>


Are you saying you want to get rid of the gap between children elements of the VGroup?

You can set gap=0 in the group, as in:

<s:VGroup gap="0" />

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜