Container layout only affects content children and not rawChildren (borders, scrollbars, etc).
Since children are sized by their parents, you size and layout yourself, which you should do in updateDisplayList. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, December 06, 2007 11:30 AM To: [email protected] Subject: [flexcoders] Auto-sizing a Container that lives in rawChildren - how? It seems that Containers that are added to rawChildren do not get measured and laid out automatically like they normally would. For instance, if I don't give my HBox an explicit width and height it will not show up when I call someCanvas.rawChildren.addChild(myHBox), no matter how many children I put inside it. I am assuming this is due to their measure() method not getting called (by SystemManager?) or something but am not sure. My question is whether or not there is a fairly easy way to get them to auto-size like usual, or do I have to run through the children and calculate it all myself during updateDisplayList()? TIA, Ben

