Oh, and one more thing, hopefully i don't butcher this. As explain to me before, using constrained layout on objects does not actually resize them, just anchors them based on teh top, bottom, left and right properties. That's why you can't anchor a vBox on all sides and expect the scrollbars to appear correctly.
Constrained layout is NOT equal to "Docking" as some other editors, such as in Visual Studio refer to it. This is wierd if you anchor on all 4 sides, put a border on your vbox and it does appear to grow with the parent display object it's anchor against, but again, the vbox size, at least for calculating scrollbars is NOT aware of this. I assume this is very similar to using 100% values for width and height. Weird and certain not what i would expect. --Scott --- In [email protected], Tom Bray <[EMAIL PROTECTED]> wrote: > > Shouldn't the height of the VBox below end up being 300? Shouldn't > height="100%" make it fill up the area allotted to it by it's > parent? Instead it ends up having a height of 612 and no scrollbar: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" horizontalScrollPolicy="off" > verticalScrollPolicy="off"> > <mx:Canvas width="500" height="300" horizontalScrollPolicy="off" > verticalScrollPolicy="off"> > <mx:VBox id="badVBox" width="100%" height="100%"> > <mx:Canvas width="100%" height="200" backgroundColor="green"/> > <mx:Canvas width="100%" height="200" backgroundColor="green"/> > <mx:Canvas width="100%" height="200" backgroundColor="green"/> > </mx:VBox> > </mx:Canvas> > > <mx:Button y="400" label="debug" click="debug()"/> > > <mx:Script> > <![CDATA[ > public function debug():void > { > var v:VBox = badVBox; > } > ]]> > </mx:Script> > > </mx:Application> >

