I've also noticed this when it comes to databinding.
I've seen a few cases where commitProperties() doesn't fire, or i'll
be using an observe tag in view that only gets fired when the view is
visible.
regards,
Bjorn
On 15/06/2007, at 11:47 AM, Peter Hall wrote:
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:[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
Regards,
Bjorn Schultheiss
Senior Developer
Personalised Communication Power
Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia
T: +61 3 9674 7400
F: +61 3 9645 9160
W: http://www.qdc.net.au
((------------This transmission is confidential and intended solely
for the person or organization to whom it is addressed. It may
contain privileged and confidential information. If you are not the
intended recipient, you should not copy, distribute or take any
action in reliance on it. If you believe you received this
transmission in error, please notify the sender.---------------))