I think in the general case, you'll need to set minHeight/minWidth to zero or something small on the Panel or have fixed width/height on the Panel to get the Panel to consider putting up scrollbars. The graphics object should compute measuredMinWidth/measuredMinHeight to be the same as measuredWidht/Height so the Panel will not try to shrink it past its dimensions. If you can compute the measurements w/o drawing then you don't need commitProperties and just draw in updateDisplayList. I don't know why you need a container reference unless it is to get the bounds of the container to determine where to draw, but if you've set up % widht/height you'll be given those dimensions in updateDisplayList.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, January 18, 2008 7:02 AM To: [email protected] Subject: RE: [flexcoders] Drawn objects acting as children to components? Hey Jim, passing minWidth and minHeight to the custom UI component worked perfectly for me - now the drawn graphic is contained in the Panel container - thank you! Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer Community

