In the past I have personally found Text controls easier to deal with,
but you should still be able to do this.  It may be that the textHeight
property is only exactly what it says it is -- the height of the
rendered htmlText in your case.  You may need to account for the
control's other properties that affect size like the chrome. Assuming
messageBox is a TextArea control, perhaps something like:
 
messageBox.height = messageBox.textHeight + messageBox.viewMetrics.top +
messageBox.viewMetrics.bottom + messageBox.borderMetrics.top +
messageBox.borderMetrics.bottom;
 
HTH,
Ryan

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sajid Hussain
Sent: Monday, September 22, 2008 12:46 PM
To: Code
Subject: [flexcoders] Creating TextArea height from String;



Gurus,
 
I want to create or set textarea's height from string(message from other
user) I did folwoing code

 

messageBox.htmlText=msg;

messageBox.validateNow();

messageBox.height=messageBox.textHeight;

 

but height got chance but stiill it dont work exactly it shows scrollbar
to textarea about some percentage of height ,where it shud not suppose
to do,if someway I cud get get text areas scrollbar height and reset
those or I would love to have your sugestions

 

Sajid 

RIA developer


 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Reply via email to