Sie wünschen etwas Ähnliches:
wenn (isIE ()) {
text_area.style.height = text_area.scrollHeight + „px“;
} sonst {
text_area.style.height = 0;
text_area.style.height = (text_area.scrollHeight -2) + „px“;
}
http://bytes.com/topic/javascript/answers/615386-dynamically-resizing-height-textarea-known-width sehen