Make sure UITextField's .width is set to some proportion of the UIComponent's explicitWidth.
However, I think numLines may not get updated until after render so you may need to use callLater to go back and truncate. Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of DustinB Sent: Saturday, October 24, 2009 12:54 AM To: [email protected] Subject: [flexcoders] need help making a UITextInput update its numLines property 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

