This could help:
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Script>
<![CDATA[
function updateHeight(target){
 target.height = target.label.textHeight + 25;
}
]]>
</mx:Script>
<mx:TextArea id="ta" keyDown="updateHeight(event.target)" vScrollPolicy="off"></mx:TextArea>
</mx:Application>
 
Philippe Maegerman
 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of npw99uk
Sent: mercredi 20 juillet 2005 12:06
To: [email protected]
Subject: [flexcoders] dynamic hight for textarea

Hi all, i was wondering about the textarea and is it possible to
dynamically change the size (height and width) dependant upon the
text, so no scroll bar would appear

I was wondering about the possiblity of using the layoutHeight and
layoutWidth in combination with the text length.

Any tips here would be good

Thanks







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to