Paul, Thanks for your reply. > Have you tried setting the verticalScrollPolicy?
No, because looking at BoxLayout#measure, it seemed to have no impact on the measure of the component. But, just to be sure, I just empirically confirmed this. > If you want to refer to specific containers, give them an id so we can be > sure which is being refered to. I put in ids at first, but they seemed to obfuscate more than they helped, since there were only two inner VBoxes. But here is the problem restated with ids: <mx:VBox width="200" height="300" verticalScrollPolicy="off"> <mx:VBox minHeight="0" id="_top" verticalScrollPolicy="auto"> ... lots of stuff ... </mx:VBox> <mx:VBox id="_bottom" verticalScrollPolicy="off"> ... lots of stuff ... </mx:VBox> </mx:VBox> How to make _top scroll only without _bottom scrolling? > This might be helpful: Thanks for the link, but I'm afraid it didn't help me with this particular problem. It is interesting, a search brought up several similar posts in the past with the same question, but there's never been an answer, just suggestions a la "have you tried minHeight=0?". Just to be explicit, I have set minHeight and verticalScrollPolicy on the relevant mxml elements in my example. I wonder if mxml provides any way to solve this or if I have to use the updateDisplayList override I described initially. Adam --- In [email protected], "Paul Andrews" <[EMAIL PROTECTED]> 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 > > Paul > ----- Original Message ----- > From: "aduston1976" <[EMAIL PROTECTED]> > To: <[email protected]> > 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 > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > >

