[flexcoders] Dynamically Setting width of a TextInput control

2007-11-22 Thread simonjpalmer
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?



RE: [flexcoders] Dynamically Setting width of a TextInput control

2007-11-24 Thread Alex Harui
The renderer's width is fixed to the size of the column

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Thursday, November 22, 2007 11:49 AM
To: flexcoders@yahoogroups.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?