Thanks these are good idea, but actually I want something different. I should have been more specific.
I want the child to be scrollable within vBxContent, without setting vBXxContent.height to a fixed size as you can see in my following little ASCII screenshot :) -------------------- | ______________ | | | _____ |^| | | | | | | | | | | | | | | | | | | | | | | | |__|_____|___|v| | | | -------------------- The problem is, that vBxContent does not implicitly goes to scrollmode. I tried the following, what sets the size of vBxContent to the Applications.height: <mx:VBox id="vBxContent" width="100%" height="{this.height}" That works, but only as long as there is no other component before or after vBxContent (like canAnotherComponent in the example)... Then I would have to do something like height="{this.height- canAnotherComponent.height }" That's not useful if I don't know how many components are following.... Is there no easy way not to allow a component not to grow bigger than its parent?? Cheers, Christoph > -----Ursprüngliche Nachricht----- > Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im > Auftrag von bhaq1972 > Gesendet: Donnerstag, 22. September 2005 13:24 > An: flexcoders@yahoogroups.com > Betreff: [flexcoders] Re: container - child : height=100% - layout problem > > just some ideas > 1) look at scaleY property for your child canvas. > 2) a general approach might be ovveride vBxContent layoutChildren() > method something like this (untested) > > function layoutChildren() > { > super.layoutChildren(); > //loop all children and and chge width if neccessary > for(var i=0;i<numChildren;i++) > { > var obj1 = getChildAt(i); > if( obj1.layoutHeight > this.layoutHeight) > { > obj1.layoutHeight = this.layoutHeight; > // i'm sure theres more to do like scaling - but its a start > } > } > } > > --- In flexcoders@yahoogroups.com, Christoph Diefenthal > <[EMAIL PROTECTED]> wrote: > > > > 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 > Yahoo! Groups Links > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/