RE: [flexcoders] setStyle, preinitialize and initialize

2012-04-13 Thread Bill Franklin
: Amtsgericht Düsseldorf, HRB 46985 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, April 12, 2012 3:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] setStyle, preinitialize and initialize The doc is assuming you

Re: [flexcoders] setStyle, preinitialize and initialize

2012-04-13 Thread Alex Harui
Düsseldorf, HRB 46985 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, April 12, 2012 3:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] setStyle, preinitialize and initialize The doc is assuming you are calling

RE: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Gordon Smith
Doing it in the 'initialize' event seems like the right way to do it. The 'initialize' event still occurs before the LayoutManager has sized and positioned the children. But if you wait until creationComplete() the LayoutManager has already laid out the children and calling setStyle()will

Re: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Alex Harui
The doc is assuming you are calling setStyle on the component dispatching the event, not its children. Why aren’t you using states for this? On 4/11/12 3:40 PM, flexwdw flex...@yahoo.com wrote: So, I've run into this before but I don't recall it being the headscratcher it has become