hello Flexcoders!

I am stumped with a problem in my DataGrids itemRenderer.
I am using a regular DataGrid and my column has a renderer that extends 
UIComponent and not DataGridItemRenderer.

In my renderer is a UITextField that has wrapping turned on. The user can 
expand and reduce the width of the column, and as they do I have a function 
that truncates the text if there is not enough room in the column to display it 
in 4 lines or less within the visible space of the resized cell. I use the 
UITextField.numLines property as my indicator.

This works great when I expand the width of the column.

I doesn't work when I reduce the width of the column by making the text go 
from, say 2 lines, to 5 lines.

When I roll over the row, the UITextField updates its numLines property. 

Any ideas about an event I can listen for on the DataGrid or ItemRenderer, or a 
method to call on the UITextInput to make it update the numLines property?

thanks!
Dustin

Reply via email to