Try setting minHeight=0 and minWidth=0 on vBxContent. I had the same problem with some of my layouts and that fixed
J
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Diefenthal
Sent: Thursday, September 22, 2005
3:01 AM
To: '[email protected]'
Subject: [flexcoders] height=100%
layout problem
Hi @all,
I have got a problem with my layout...
I want my Application to fit into the browser
window.
A VBox (vBxContent) should fit into this
Application and be as high as
possible, wherefore I set its height to 100%.
But if a child (canContent) within vBxContent is
higher then the screen it
pushes the vBxContent.height to canContent's
height.
How can I assure, that the vBxContent height will
not get bigger?
<mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"
width="100%"
height="100%"
backgroundColor="#AAAAAA" >
<mx:VBox
id="vBxContent"
width="100%"
height="100%"
backgroundColor="#666666"
verticalAlign="middle"
horizontalAlign="center">
<mx:Canvas
id="canContent"
backgroundColor="#ffffff"
width="200"
height="1188" />
</mx:VBox>
<mx:Canvas
id="canAnotherComponent"
backgroundColor="#ffffff"
width="100"
height="100" />
</mx:Application>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|