console.debug( 'textarea_grow', rows, this );
var grow = function(ta) {
var lines = ta.value.split('\n').length;
- if ( lines > rows ) {
+ if ( lines != rows ) {
ta.rows = lines;
- //console.debug('keyup', lines, rows, ta );
+ rows = lines;
+ console.debug('keyup', lines, rows, ta );
}
};
grow(this);