PDA

View Full Version : 100% height and width on components


Dennis_gull
10-05-2008, 03:33 PM
Hello,
Is there some way I can keep the containers size at 100% without exceeding the parent width and height?
By simply adding: (example)
<mx:Canvas width="100%" height="100%" />
The container will expand and get bigger then the parent if I add more content then the size of the canvas and that will give the parent container an scroller instead of the container. I want the container to get an scroller but I can only accomplish this if I enter an exact width and height, any ideas on how to solve this would be appreciated.

Peter Cowling
10-05-2008, 05:46 PM
Hi Dennis,

If I have you right (and I am not sure that I do), you should use clipContent="false" in the parent container.


______

Exemplars Gallery (http://www.exemplars-gallery.com)

dr_zeus
10-06-2008, 07:51 PM
Sometimes you need to set minWidth or minHeight of a container to 0 to ensure that it will use percentage width or height values rather than using the larger width and height of its children.

Dennis_gull
10-06-2008, 09:22 PM
Thanks for the replys, the clipContent="false" worked perfectly ;)