Yeah... It would be something like this. If you run it you will see that the measure is wrong. It just gets right when you start typing.
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="update();"> <mx:Script> <![CDATA[ import mx.events.FlexEvent; public function update():void { src.validateNow(); src.height = src.textHeight+ src.getStyle("fontSize"); } ]]> </mx:Script> <mx:Panel title="TextArea Control Example" height="75%" width="75%" paddingTop="10" paddingLeft="10"> <mx:TextArea id="src" change="update()"> <mx:htmlText> <![CDATA[ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ]]> </mx:htmlText> </mx:TextArea> </mx:Panel> </mx:Application> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Rafael - do you have an example small enough to post here so we can have a > look-see? > > -Josh >