View Full Version : enlarge height of multiline inputtext
epopov
01-09-2004, 10:36 AM
Hi.
Is it possible to enlarge height of multiline inputtext after user press ENTER key at the last line of it? How to perform it if it is possible?
antun
01-09-2004, 11:30 AM
Kind of. You can change the height, but the text will still want to "scroll" up:
<canvas debug="true">
<inputtext width="140" multiline="true" height="34" bgcolor="yellow">
<method event="onkeydown" args="keycode">
if ( keycode == 13 ) {
this.setHeight( this.height+17 );
}
</method>
</inputtext>
</canvas>
I'll look into whether this is a bug or not.
-Antun
Benibur
01-24-2007, 11:41 AM
Hi, this hack works fine for the "return" key.
But if the reason why the text gets longer is a long line that must be displayed under, then the height of the text is not updated...
There were no improvement for this component ??
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.