Hmm, you explicitly mentioned "item renderer".
Anyway, if you set the .text early enough, the TextInput should pick it up. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Saturday, November 24, 2007 7:05 PM To: [email protected] Subject: [flexcoders] Re: Dynamically Setting width of a TextInput control this is not in a datagrid it is just a dynamically created control on a canvas --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > The renderer's width is fixed to the size of the column > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of simonjpalmer > Sent: Thursday, November 22, 2007 11:49 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Dynamically Setting width of a TextInput control > > > > 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? >

