Volete qualcosa di simile:
se (isIE ()) {
text_area.style.height = text_area.scrollHeight + “px„;
} altrimenti {
text_area.style.height = 0;
text_area.style.height = (text_area.scrollHeight -2) + “px„;
}
vedere
http://bytes.com/topic/javascript/answers/615386-dynamically-resizing-height-textarea-known-width