When updateDisplayList is called, your x,y position and width/height are essentially set by the parent, so you can get the parent's viewMetrics and the parent's size and determine if your rectangle is outside the parent's rectangle.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Saturday, January 27, 2007 9:14 AM To: [email protected] Subject: Re: [flexcomponents] Is there a way to tell when a component is partially clipped or masked or is overflowing? Hey, you could check and see if the verticalScrollBar is not null. you could add a listener and do some math. I think it depends if you are trying to check something BEFORE the scroll bar appears. Peace, Mike On 1/27/07, dorkie dork from dorktown <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Lets say I have a component x inside component y. If x height is greater than y height and y height is fixed then y displays scroll bars and the bottom portion of x is "clipped", "masked" or however you want to say partially hidden. Is there a property or a way that I can tell if x is "clipped" or it's contents overflow its container? TIA -- Teoti Graphix http://www.teotigraphix.com <http://www.teotigraphix.com> Blog - Flex2Components http://www.flex2components.com <http://www.flex2components.com> You can find more by solving the problem then by 'asking the question'.
