I was running into this issue this week, and didn't really resolve it. Problem is, if the component's visbible=true but one of it's parents is invisible, you can't easily chek for that. I starting writing code to recursively check if the parents are all visible, but it just seemed like a hack, so I stoppped...
Peter On 6/14/07, Alex Harui <[EMAIL PROTECTED]> wrote:
Yes, visible is not a factor in the recipe. I'd just check visible in updateDisplayLIst and return. ------------------------------ *From:* [email protected] [mailto:flexcompone [EMAIL PROTECTED] *On Behalf Of *reflexactions *Sent:* Wednesday, June 13, 2007 6:53 PM *To:* [email protected] *Subject:* [flexcomponents] How are invisible children handled? I was wondering how a component is handled by its parent whilst it is not visible. If the childs properties, size or display list are invalidated will this automatically invalidate the parent? Will the parent call measure or updateDisplayList for the component even though it is not visible? What I am getting at is that for my component whilst it is invisible I still want it to react to property changes etc., but it is a waste of time for it to bother redrawing or redoing its layout and as its not visible there is no point in invalidating its parent as it cant effect the parents layout (except for the point at which its visiblity actually changes one way or the other), of course at some point when I make it visible I would want it to "catch up" and redo its layout so it is up to date when it finally appears. I want to make sure that this is how things work by default or if not how to do this and what I need to be aware of..... Tks
