RE: [flexcoders] hug cell contents in one cell on a datagrid

2009-01-20 Thread Alex Harui
Not sure I understand.  variableRowHeight will allow a row to adjust to 
measuredHeight of a renderer.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dnk
Sent: Monday, January 19, 2009 1:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] hug cell contents in one cell on a datagrid


On 16-Jan-09, at 3:46 PM, dnk wrote:

 Curious

 Is there a way to force once cell of a datagrid to resize itself to
 hug the contents?

 I have an item renderer in a cell that changes size, and i wanted the
 datagrid cell to always resize with the contents.

 Thanks!

 d


In an effort to put something together for this, i have written an
event that passes the dimensions through. Now my problem is that the
mx:DataGridColumn does not accept a height attribute.

There has to be someway to deal with this.

Any ideas?

d



Re: [flexcoders] hug cell contents in one cell on a datagrid

2009-01-20 Thread dnk
Well my problem is that the itemrenderer is rendered out, and the  
renderer changes size (state, etc), and when it does so, the cell just  
adds scroll bars to it. I was hoping that the cell could not add  
scroll bars, but rather readjust it's size for the new state.

d



On 20-Jan-09, at 11:19 AM, Alex Harui wrote:


 Not sure I understand.  variableRowHeight will allow a row to adjust  
 to measuredHeight of a renderer.



 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
 On Behalf Of dnk
 Sent: Monday, January 19, 2009 1:54 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] hug cell contents in one cell on a datagrid




 On 16-Jan-09, at 3:46 PM, dnk wrote:

  Curious
 
  Is there a way to force once cell of a datagrid to resize itself to
  hug the contents?
 
  I have an item renderer in a cell that changes size, and i wanted  
 the
  datagrid cell to always resize with the contents.
 
  Thanks!
 
  d
 

 In an effort to put something together for this, i have written an
 event that passes the dimensions through. Now my problem is that the
 mx:DataGridColumn does not accept a height attribute.

 There has to be someway to deal with this.

 Any ideas?

 d





Re: [flexcoders] hug cell contents in one cell on a datagrid

2009-01-19 Thread dnk

On 16-Jan-09, at 3:46 PM, dnk wrote:

 Curious

 Is there a way to force once cell of a datagrid to resize itself to
 hug the contents?

 I have an item renderer in a cell that changes size, and i wanted the
 datagrid cell to always resize with the contents.

 Thanks!

 d


In an effort to put something together for this, i have written an  
event that passes the dimensions through. Now my problem is that the  
mx:DataGridColumn does not accept a height attribute.

There has to be someway to deal with this.

Any ideas?

d




[flexcoders] hug cell contents in one cell on a datagrid

2009-01-16 Thread dnk
Curious

Is there a way to force once cell of a datagrid to resize itself to  
hug the contents?

I have an item renderer in a cell that changes size, and i wanted the  
datagrid cell to always resize with the contents.

Thanks!

d