The first trick is to get the scrollbars to appear on the VBox and not the app. That's the main reason you got clipped.
Try this: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="300"> <mx:VBox id="vb" width="100%" height="100%" minWidth="0" minHeight="0" > <mx:Box id="box" width="100%" minWidth="0" minHeight="0" height="20" backgroundColor="red" borderColor="blue" borderStyle="solid" borderThickness="8" /> <mx:TextInput id="boxSize" width="100" change="box.height=event.currentTarget.text" /> </mx:VBox> </mx:Application> ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Friday, November 30, 2007 5:19 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Eliminating scrollbars It's my fault - my post wasn't too explicit. I wasn't particularly thinking of vertical scrollbars. Let's say you had a vertical scrollbar and a width of 100%, this now means you also get a horizontal scrollbar because you can't get the 100% for the component (because of the scrollbar), so a horizontal bar will appear. I really don't want a horizontal bar and depending on content and context I might not have a vertical scrollbar either. So really it's more a case of when you have one scrollbar and don't want two of them! This is the scenario I had in mind: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" height="300"> <mx:VBox id="vb" width="100%"> <mx:Box id="box" width="100%" height="20" backgroundColor="red" borderColor="blue" borderStyle="solid" /> <mx:TextInput id="boxSize" width="100" change="box.height=event.currentTarget.text" /> </mx:VBox> </mx:Application> If you make the box too high, the vertical scrollbar appears and also a horizontal scrollbar. Of course, when the height is small enough there is no vertical scrollbar. I'd like the box width to track the available space so that no horizontal bar appears. The lazy approach with a magic number less than 100% does do the job, but it would be nice to see how others approach this. If I deliberately suppress the horizontal scroll policy, the vertical scrollbar will be over the box, obscuring part of it. Paul ----- Original Message ----- From: Giles Roadnight <mailto:[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Sent: Friday, November 30, 2007 11:09 AM Subject: Re: [flexcoders] Eliminating scrollbars verticalScrollPolicy="off" ? On Nov 30, 2007 11:03 AM, Paul Andrews <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I've noticed that in order to eliminate scrollbars on layouts that are percentage based, I'm often choosing magic numbers to avoid the appearance of scrollbars in the layout. Whats the perceived best practice to avoid the generation of scrollbars in layouts? Paul -- Giles Roadnight http://giles.roadnight.name <http://giles.roadnight.name>