In Flex, parents size their children. Any child of a mx.core.Container subclass will be sized according to layout rules. Any child of UIComponent is waiting to be told by your code what its final size is.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, September 10, 2007 7:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Circumstances for Button sized by default Why is it that when I create a Button as a child of a custom component I have to give it a width and a height, whereas creating one in straight MXML or AS in an application auto sizes it to fit the label? Thanks, Ben