[flexcoders] Any way to tell a hbox to be only as wide as is needed for contents

2006-07-05 Thread hank williams



I have a variety of situations where I want a box to be just big enough to hold its contents, and to just resize other stuff to accomodate. One of the most important reasons for this is localization. I want to support lots of languages and I dont want to have to hard code widths to get things to look the way I want. This is also true for datagrid, where I would like certain columns to be exactly what they need to be to accomodate the headertext length and other to just grow or shrink to use the remaining available space.
Hank

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Any way to tell a hbox to be only as wide as is needed for contents

2006-07-05 Thread Steve Webster



Hank,I have a variety of situations where I want a box to be just big enough to hold its contents, and to just resize other stuff to accomodate. One of the most important reasons for this is localization. I want to support lots of languages and I dont want to have to hard code widths to get things to look the way I want. This is also true for datagrid, where I would like certain columns to be exactly what they need to be to accomodate the headertext length and other to just grow or shrink to use the remaining available space.
Set width to NaN (if using ActionScript) or remove the width attribute (if in MXML view).Cheers,Steve-- Steve Webster
http://dynamicflash.com

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Any way to tell a hbox to be only as wide as is needed for contents

2006-07-05 Thread hank williams



Thanks steve.That works great for components, but doesnt seem to work for datagrid columns. In that situation when I set the column width to nothing the column got bigger than when it was set manually. Ideally I would like to be able to make the column the width of the header text for the column.
HankOn 7/5/06, Steve Webster [EMAIL PROTECTED] wrote:



Hank,I have a variety of situations where I want a box to be just big enough to hold its contents, and to just resize other stuff to accomodate. One of the most important reasons for this is localization. I want to support lots of languages and I dont want to have to hard code widths to get things to look the way I want. This is also true for datagrid, where I would like certain columns to be exactly what they need to be to accomodate the headertext length and other to just grow or shrink to use the remaining available space.
Set width to NaN (if using ActionScript) or remove the width attribute (if in MXML view).Cheers,Steve-- Steve Webster

http://dynamicflash.com






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___