OK, so maybe a call to validateNow()? You have to be parented for that to work though.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Wednesday, November 28, 2007 9:51 AM To: [email protected] Subject: [flexcoders] Re: Dynamically Setting width of a TextInput control I think I have been speaking forked tongue a little. It is an itemRenderer but not for a DataGrid, it's for the springgraph. I was tracing through that code and it appears to create its item renderers as free standing controls on a canvas, hence my remark. In my case I want the nodes in the springgraph just to be text, hence the use of a TextInput control which gives me nice control over some of the styling. This means I also do not explicitly control the sequence in which the text of the control gets set. I override the set data() method so I can also change some other properties of the control at the same time. That's when I want to set the control width. Simon --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Hmm, you explicitly mentioned "item renderer". > > > > Anyway, if you set the .text early enough, the TextInput should pick it > up. > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of simonjpalmer > Sent: Saturday, November 24, 2007 7:05 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > 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> <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > The renderer's width is fixed to the size of the column > > > > > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of simonjpalmer > > Sent: Thursday, November 22, 2007 11:49 AM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> <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? > > >

