Hi, First make sure you give the TextInput an unique ID, and then you can change the width property to make it larger, using the change event of the textinput. And you will have to find out what the ratio between your text size and the input width is, so that it will always match your characters. Here's a (very) simple example:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:TextInput x="99" y="99" id="txt" change="txt.width = txt.text.length*10+10"/> </mx:Application> Make sure you also add a minimum width and some logic to preserve that value (I haven't done that). Hope this helps, Cristian --- In [email protected], "simonjpalmer" <[EMAIL PROTECTED]> wrote: > > I am using a TextInput control as an item renderer and I want to set > the width of the control to reflect the size of the text within it. > The text comes from a property of the data associated with the item > renderer. I am overriding the set data method in order to set the > text and some stle properties, but I can't figure out how to set the > width of the control. > > Any ideas? >

