One way to do that is subclass TextArea, override the measure() method
and set measuredHeight accordingly.  The underlying textField.textHeight
should help.

 

However, TextArea is editable and most folks don't want to edit HTML.
If you want non-editable, use the Text component.  If you set its width,
it should get the right height.

 

-Alex

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Cato Paus
Sent: Monday, February 05, 2007 2:06 AM
To: [email protected]
Subject: [flexcomponents] increase the height of the TextArea

 

Hi All :)

I have a little issue, I want to add logic to increase the height of 
the TextArea control to display the text on multiple lines.

I want to put htmlText into the TextArea control with a fixed width, 
but a dynamic heigth.

I have looked at the Flex Doc.
http://livedocs.macromedia.com/flex/201/html/ascomponents_advanced_148_1
<http://livedocs.macromedia.com/flex/201/html/ascomponents_advanced_148_
1> 
4.html

SomeOneHave a Idea ?

Cato Paus 

 

Reply via email to