I don't think this is bug because using top,left, right and bottom
properties would need a layout that uses absolute positioning, while
vertical, horizontal and tail layout are automatic layouts and don't use
absolute positioning.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Fri, Apr 23, 2010 at 9:45 AM, bhaq1972 <[email protected]> wrote:

>
>
> Thanks Peter.
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, Peter
> DeHaan <pdeh...@...> wrote:
> >
> > Try setting the Rect's width/height to 100%:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
> > xmlns:s="library://ns.adobe.com/flex/spark"
> > xmlns:mx="library://ns.adobe.com/flex/mx">
> > <s:layout>
> > <s:VerticalLayout />
> > </s:layout>
> >
> > <s:Group width="100%" height="28">
> > <s:Rect top="0" right="0" bottom="0" left="0">
> > <s:fill>
> > <s:SolidColor color="green" />
> > </s:fill>
> > </s:Rect>
> > </s:Group>
> >
> > <s:HGroup width="100%" height="28">
> > <s:Rect width="100%" height="100%">
> > <s:fill>
> > <s:SolidColor color="red" />
> > </s:fill>
> > </s:Rect>
> > </s:HGroup>
> >
> > </s:Application>
> >
> >
> > Not exactly sure why using left/right/top/bottom constraints didn't work
> on the bottom HGroup, but feel free to file a bug at
> http://bugs.adobe.com/flex/ and Adobe can look into it.
> >
> > Peter
> >
> >
> >
> > From: [email protected] <flexcoders%40yahoogroups.com> [mailto:
> [email protected] <flexcoders%40yahoogroups.com>] On Behalf Of
> bhaq1972
> > Sent: Thursday, April 22, 2010 4:53 AM
> > To: [email protected] <flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Flex 4 HGroup and Group background colour
> >
> >
> >
> > Why does this work
> >
> > <s:Group width="100%" height="28">
> > <s:Rect top="0" right="0" bottom="0" left="0">
> > <s:fill>
> > <s:SolidColor color="0x4960a6" />
> > </s:fill>
> > </s:Rect>
> > </s:Group>
> >
> > But this doesnt?
> > <s:HGroup width="100%" height="28">
> > <s:Rect>
> > <s:fill>
> > <s:SolidColor color="0x4960a6" />
> > </s:fill>
> > </s:Rect>
> > </s:HGroup>
> >
> > thanks
> >
>
>  
>

Reply via email to