PDA

View Full Version : Auto Height text areas - text areas the facebook way



francodacosta
14 Apr 2009, 10:51 AM
http://www.francodacosta.com/demos/extjs/autoHeightTextArea/logo.jpg


Ext.fc.autoHeightTextArea

Text Area the facebook way

About

Get your text areas to grow/shrink according to content

Features

No endless timer events, height is updated on key press
You can define max an min height and height increment for the text area


Demo & Download

http://www.francodacosta.com/demos/extjs/autoHeightTextArea/

zhw511006
15 Apr 2009, 8:51 AM
Thank You For Sharing!

JamesC
16 Apr 2009, 12:46 AM
Isn't this part of Ext already by just supplying grow: true in the config for a text area?

galdaka
16 Apr 2009, 3:18 AM
Isn't this part of Ext already by just supplying grow: true in the config for a text area?

Yes. With
grow: true and using Fx you don´t need this extensión.

francodacosta
16 Apr 2009, 3:47 AM
galdaka, instead of taking time to trash this extension you could have used that time to see how it was implemented.

This extension is not the quite the same because you do not have to use any Ext form field, it can be applied directly to a HTML Text Area which in a normal website (not a web app ) makes sense.

And also Ext.fom.TextArea with grow enable has lots of quirks, just try it and watch how the textarea scrollbar goes crazy showing and hiding itself with every single grow