try setting the minWidth also. On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos < [email protected]> wrote:
> <mx:Application > xmlns:mx="http://www.adobe.com/2006/mxml" > width="640" > height="480" > > > <mx:VBox top="100" bottom="10" horizontalCenter="0" width="90%" > horizontalAlign="left" verticalGap="5" id="debugWinVB_ID"> > </mx:VBox> > </mx:Application> > > > At the start of the application the VBox height is 370 (Application.height > - vbox.top - vbox.bottom) -> Correct. > > Child labels are added to this vbox in runtime and as soon as the > cumulative labels height becomes > 370 the vbox expands and scroll bars > appear @ the Application level...Why? > > Should not the Vbox remain @ 370 height and display inner scrollbars, > according to the following rule:? > > * Component size determined by a pair of constraint-based layout > properties (left-right or top-bottom) overrides any explicit or > percentage-based size specifications. For example, if you specify both left > and right constraints, the calculated constraint-based width overrides the > width set by a width or percentWidth property. > > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > >

