flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: how to horizontally align a Group located inside a VGroup?
Date Thu, 20 Jun 2013 15:43:24 GMT
Vgroup implies layout and ignores many properties like alignment.

On 6/20/13 8:19 AM, "modjklist@comcast.net" <modjklist@comcast.net> wrote:

>Hi Experts,
>
>I have the following rectangle and lines oriented correctly with each
>other
>inside a Spark Group.
>
>How would I then horizontally center this group in the VGroup (without
>changing 
>the alignment of the rect and lines within the Group)?
>
>I tried using a horizontalCenter="0" in the Group declaration, but no
>effect.
>
>
><s:VGroup width="100%" height="100%" paddingBottom="20" paddingLeft="20"
>paddingRight="20" paddingTop="20" gap="0">
>
>    <s:Group id="dgGroup" width="300">
>
>        <s:Rect top="0" width="{this.dgGroup.width}" left="-1"
>height="50">
>            <s:stroke>
>                <s:SolidColorStroke color="0xff0000" weight="1"/>
>            </s:stroke>
>        </s:Rect>
>						
>        <s:Line id="l1" left="-1" top="-1" bottom="-1">
>            <s:stroke>
>                <s:SolidColorStroke color="0xffffff" weight="1" />
>            </s:stroke>
>        </s:Line>
>					
>        <s:Line id="l2" left="0" top="-1" bottom="0">
>            <s:stroke>
>                <s:SolidColorStroke color="0x00FF00" weight="1"/>
>            </s:stroke>
>        </s:Line>
>
>    </s:Group>
>
></s:VGroup>


Mime
View raw message