Verticalscrollposition will be something like 0, 1, 2 and you probably
need 100, 112, 124.

 

Try {Math.max(100, t2.verticalScrollPosition * 12)}

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Thursday, May 31, 2007 2:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] textarea minHeight

 

Aim - I want the minimum height of a textarea to be 100 and then 
grow as more newlines are added.

this nearly works except the minimum height isn't 100

<mx:TextArea id="t2" minHeight="100" verticalScrollPolicy="off" 
height="{t2.verticalScrollPosition}"/>

also tried 

<mx:TextArea id="t2" verticalScrollPosition="100" minHeight="100" 
verticalScrollPolicy="off" height="{t2.verticalScrollPosition}"/>

but doesn't quite work.

Any help appreciated.

-Bod

 

Reply via email to