On 2/1/08, learner <[EMAIL PROTECTED]> wrote:

> I want to have my list variable row height ...precisely the height of the row 
> should the  height of the text displayed in it..
>
> I have my item rendere like this  ..it has image to show and textArea which 
> will have html text to display in it...

[snip]

>             messageTxt = new TextArea();

>   override protected function measure():void{
>             trace("measure for message box " + msgObject.message)
>             super.measure();
>             messageTxt.x = 55;
>             messageTxt.width = this.width - 55 - timeStamp.width;
>             // should i set the height of the messageTxt here  as 
> messageTxt.height = messageTxt.textHeight ............but it does not work 
> correctly..
>   }

Try calling messageTxt.validateNow() before accessing the height. The
TextArea object needs to remeasure its height based on the width
you've set.

Manish

Reply via email to