[flexcoders] Re: Flex 4 HGroup and Group background colour
Thanks Peter. --- In flexcoders@yahoogroups.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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of bhaq1972 Sent: Thursday, April 22, 2010 4:53 AM To: flexcoders@yahoogroups.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
Re: [flexcoders] Re: Flex 4 HGroup and Group background colour
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 mbha...@hotmail.com wrote: Thanks Peter. --- In flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of bhaq1972 Sent: Thursday, April 22, 2010 4:53 AM To: flexcoders@yahoogroups.com 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
[flexcoders] Re: Flex 4 HGroup and Group background colour
I was actually using an absolute layout container, when I first noticed the problem. I'm not planning to file a bug. I'm still new to flex4 skinning. So was probably using it incorrectly. Any way, since posting my orginal question I found s:BorderContainer to be a better candidate in what I want to achieve. Flex4 skinning is very powerful and I have already been able to achieve something I couldnt do in Flex3. thanks bodrul --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA hayke...@... wrote: 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 mbha...@... wrote: Thanks Peter. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Peter DeHaan pdehaan@ 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: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of bhaq1972 Sent: Thursday, April 22, 2010 4:53 AM To: flexcoders@yahoogroups.com 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