rem: var totalHeight = _iframe.contentDocument.body.scrollHeight; 
add: var totalHeight = iframe.contentDocument.body.scrollHeight; 
context:         'scroll', function(event) {            var totalHeight = _iframe.contentDocument.body.scrollHeight;            // If scroll event is caused by appearance of a horizontal            // scroll bar, e.g. when only a very long non-wrapping            // line has been written, current default height (two            // lines) will be less than the total height (one line).            // We don't want the input area to shrink below the            // default, though, so guarding here against such case.            if(container.clientHeight < totalHeight)                container.style.height = totalHeight + 'px';        }, false);
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/cc95dedf34944f9563ec1a378a7c7ce25a61fc47/input.js/clean/chrome/content/app/behaviours/input.js