By a coincidence I created yesterday a component you are talking about.
http://mitek.id.au/flex/ElasticTextField.as
The important thing is - it works in Flex Printing Plant/Engine.
PS This is a readonly thing as my primary goal was printing. I tried
to use TextArea - it does not work in
only.
Also, since the resize happened in creationComplete, it will NOT work in
an item renderer or in a Repeater with recycleChildren=true.
there is also no guarantee that data binding will happen before the
creationComplete event, so you have to override set text method as well.
Dmitri.
I was struggling with this as well. Dmitri offered a great solution,
but my final solution was much less complicated. I added this funtion
to my .mxml file (which I got from
http://weblogs.macromedia.com/nwatson/archives/2005/09/index.cfm):
private function updateHeight(target:Object):void
{
3 matches
Mail list logo