RE: [flexcoders] Re: Real size of components

2007-09-24 Thread Alex Harui
lt;mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of Arpit Mathur > > Sent: Saturday, September 22, 2007 11:49 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroup

RE: [flexcoders] Re: Real size of components

2007-09-23 Thread Gordon Smith
excoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Arpit Mathur > Sent: Saturday, September 22, 2007 11:49 AM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: Re: [flexcoders] Re: Real size of co

RE: [flexcoders] Re: Real size of components

2007-09-22 Thread Alex Harui
2007 11:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Real size of components Would this work? component.percentWidth = 50 component.percentHeight = 50 component.validateSize() trace(component.measuredWidth) I have never really used the validation thing so

Re: [flexcoders] Re: Real size of components

2007-09-22 Thread Arpit Mathur
Would this work? component.percentWidth = 50 component.percentHeight = 50 component.validateSize() trace(component.measuredWidth) I have never really used the validation thing so I am curious. Its how I would imagine it would work. On 9/21/07, Gordon Smith <[EMAIL PROTECTED]> wrote: > >It

RE: [flexcoders] Re: Real size of components

2007-09-21 Thread Gordon Smith
It sounds like you are expecting to set percentWidth and immediately have the width change. Flex visual components don't work like this. Typically when you set properties, the component enters a kind of "invalid" state until the LayoutManager updates it. If you wait until the component dispatches a