--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Have you tried something like this? > > <mx:VBox minHeight="0" id="in1" maxHeight="{ _outer.height - > in2.height }"> > ... > </mx:VBox> > > <mx:VBox id="in2"> > ... > </mx:VBox> > > -Josh > > On Sun, Jul 13, 2008 at 4:01 PM, aduston1976 <[EMAIL PROTECTED]> wrote: > > > Hi Alex, Thank you for your reply. > > > > > then minHeight=0 should allow > > > for scrollbars on the top. > > > > That's what I would think too, but it is incorrect. I am using build > > 477 of Flex 3 SDK version 3.0.0. Here is my entire mxml application: > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Application xmlns:ll="ll.viewimpl.*" > > xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > > initialize="init()"> > > <mx:VBox x="460" width="200" height="300" id="_outer"> > > <mx:VBox minHeight="0"> > > <mx:Button label="UPPER"/> > > <mx:Button label="UPPER"/> > > <mx:Button label="UPPER"/> > > <mx:Button label="UPPER"/> > > <mx:Button label="UPPER"/> > > <mx:Button label="UPPER"/> > > <mx:Button label="UPPER"/> > > </mx:VBox> > > <mx:VBox> > > <mx:Button label="LOWER"/> > > <mx:Button label="LOWER"/> > > <mx:Button label="LOWER"/> > > <mx:Button label="LOWER"/> > > <mx:Button label="LOWER"/> > > </mx:VBox> > > </mx:VBox> > > </mx:Application> > > > > The _outer VBox gets the scrollbars. > > > > I am running on Flash Debug player 9,0,124,0 on Mozilla/5.0 (X11; U; > > Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0. > > > > Is this a bug? Any other suggestions to accomplish this? > > > > Thank you again, > > Adam > > > > --- In flexcoders@yahoogroups.com, "Alex Harui" <aharui@> wrote: > > > > > > If the bottom vbox's content is taller than the parent's 300 pixels, I > > > don't think the top vbox will get scrollbars. But if there's room for > > > both the top to show some and the bottom, then minHeight=0 should allow > > > for scrollbars on the top. > > > > > > > > > > > > ________________________________ > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > > Behalf Of aduston1976 > > > Sent: Saturday, July 12, 2008 6:26 PM > > > To: flexcoders@yahoogroups.com > > > Subject: [flexcoders] Re: Stupid question regarding sizing of mxml > > > components > > > > > > > > > > > > Hi dbronk, I need the top vbox to scroll but not the bottom one. > > > Assuming that your sdk is sufficiently similar to mine, the solution > > > you gave makes them both scroll. You can achieve this effect very > > > easily without the Canvas components in your solution: just set > > > height="50%" and minHeight="0" for both inner VBoxes. Unless I'm > > > missing something in your reply, the original problem remains > > > unsolved. Adam > > > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com<flexcoders%2540yahoogroups.com> > > > > > > , "dbronk" <dbronk@> wrote: > > > > > > > > Not sure why, seems like a bug. But if you wrap the inner vbox's in a > > > > canvas it works. > > > > > > > > <mx:VBox width="200" height="300" borderStyle="solid"> > > > > <mx:Canvas height="50%" width="100%" horizontalScrollPolicy="off"> > > > > <mx:VBox height="100%" width="100%"> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > <mx:Text text="blah" /> > > > > </mx:VBox> > > > > </mx:Canvas> > > > > <mx:Canvas height="50%" width="100%" horizontalScrollPolicy="off"> > > > > <mx:VBox height="100%" width="100%"> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > <mx:Text text="blah2" /> > > > > </mx:VBox> > > > > </mx:Canvas> > > > > </mx:VBox> > > > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com > > > <mailto:flexcoders%40yahoogroups.com <flexcoders%2540yahoogroups.com>> , > > "Paul Andrews" <paul@> wrote: > > > > > > > > > > Have you tried setting the verticalScrollPolicy? > > > > > > > > > > If you want to refer to specific containers, give them an id so we > > > > can be > > > > > sure which is being refered to. > > > > > > > > > > This might be helpful: > > > > > > > > > > > > http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro > > > _4.html > > > <http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intr > > > o_4.html> > > > > > > > > > > Paul > > > > > ----- Original Message ----- > > > > > From: "aduston1976" <aduston@> > > > > > To: <flexcoders@yahoogroups.com > > > <mailto:flexcoders%40yahoogroups.com <flexcoders%2540yahoogroups.com>> > > > > > > Sent: Sunday, July 13, 2008 12:17 AM > > > > > Subject: [flexcoders] Stupid question regarding sizing of mxml > > > > components > > > > > > > > > > > > > > > > Hi, here is an easy one: > > > > > > > > > > > > <mx:VBox width="200" height="300"> > > > > > > <mx:VBox minHeight="0"> > > > > > > ... lots of stuff ... > > > > > > </mx:VBox> > > > > > > <mx:VBox> > > > > > > ... lots of stuff ... > > > > > > </mx:VBox> > > > > > > </mx:VBox> > > > > > > > > > > > > When lots of stuff is added, I want the top inner VBox to show > > > > > > scrollbars, not the second. Any way to do this? Other than by > > > setting > > > > > > minHeight="0", which I've tried and which doesn't work? > > > > > > > > > > > > Here is a non-standard solution: I could change the outer VBox to > > > a > > > > > > VBox inheritor and override updateDisplayList, and then set > > > > > > _first.height manually after calling super.updateDisplayList. Is > > > this > > > > > > totally wrong for any reason? Will I end up breaking Flex? > > > > > > > > > > > > Thanks, > > > > > > Adam > > > > > > > > > > > > > > > > > > ------------------------------------ > > > > > > > > > > > > -- > > > > > > Flexcoders Mailing List > > > > > > FAQ: > > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > > > > > > Search Archives: > > > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo > > > <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! > > > Groups > > > > > > Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------ > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] > Thanks by the answer