flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From modjkl...@comcast.net
Subject Re: is there a way to auto-size width of component?
Date Sun, 01 Dec 2013 19:52:37 GMT
Oh, maybe you were intending to ALSO set the includeInLayout at the same time as setting visible
property. In that case, it should work. Good idea. Thanks! 

----- Original Message -----

From: modjklist@comcast.net 
To: users@flex.apache.org 
Sent: Sunday, December 1, 2013 11:50:58 AM 
Subject: Re: is there a way to auto-size width of component? 

Thanks Evyatar, but includeInLayout does not make the component invisible. 

----- Original Message ----- 

From: "Evyatar Ben Halevi-Arbib" <evyatarbh@gmail.com> 
To: users@flex.apache.org 
Sent: Sunday, December 1, 2013 11:15:26 AM 
Subject: Re: is there a way to auto-size width of component? 

Instead of manipulating the width just use the includeInLayout property 
(set to false when visible is false). 

Regards, 
Evyatar 


On Sun, Dec 1, 2013 at 8:21 PM, <modjklist@comcast.net> wrote: 

> I have a spark FormItem containing a spark TextInput. Throughout the app 
> this is made visible and invisible. When it is invisible, I want the width 
> to be 0 so that it doesn't effect the layout other (visible) form items. 
> 
> Is there a simple way upon turning it back to visible, that I can have it 
> auto-size itself to the correct width, or must I hardcode the width? Just 
> curious, as I have a lot of such FormItems, and an auto-size method would 
> save a lot of development time, especially as things change. For example, 
> if I set the width to be -1, will this trigger the component to auto-size 
> itself? 
> 



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message