Re: [flexcoders] Trying to control percentage based containers

2008-07-16 Thread Manu Dhanda

Give width and height to your TabNavigator.

Manu.


daddyo_buckeye wrote:
> 
> 
> I'm trying to control a percentage-based layout with several nested
> containers. Unless I set a fixed size (in pixels) or a minWidth or
> minHeight, my outer panel shrinks to a very small size.
> 
> I understand that parent containers inherit their size from the
> content in their children containers. My challenge is that I'm
> importing a SWF and sizing it to fill its available space (100%).
> 
> Am I missing something? Is there a way to force a container to fill
> whatever available space it fits into (vs. expanding containers based on
> children)? For example, maximize the
> application container, then any child containers.
> 
> Here's my code:
> 
> 
> http://www.adobe.com/2006/mxml
>  ">
> 
>  backgroundColor="#F3F3F3">
>  
>   
> horizontalAlign="center"
> verticalAlign="middle"
> height="90%"
> width="90%"
> scaleContent="true"
> source="assets/UD2_logo.swf" />
>   
>   
>
>   
>  
> 
> 
> 
> Any suggestions are greatly appreciated.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-control-percentage-based-containers-tp18498648p18501535.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Trying to control percentage based containers

2008-07-16 Thread daddyo_buckeye

I'm trying to control a percentage-based layout with several nested
containers. Unless I set a fixed size (in pixels) or a minWidth or
minHeight, my outer panel shrinks to a very small size.

I understand that parent containers inherit their size from the
content in their children containers. My challenge is that I'm
importing a SWF and sizing it to fill its available space (100%).

Am I missing something? Is there a way to force a container to fill
whatever available space it fits into (vs. expanding containers based on
children)? For example, maximize the
application container, then any child containers.

Here's my code:


http://www.adobe.com/2006/mxml
 ">


 
  
   
  
  
   
  
 



Any suggestions are greatly appreciated.