rem: 'scroll', function(event) { container.style.height = _this._iframe.contentDocument.body.scrollHeight + 'px'; 
add: 'scroll', function(event) { var totalHeight = _this._iframe.contentDocument.body.scrollHeight;         if(container.clientHeight < totalHeight) container.style.height = totalHeight + 'px';  
context: function Input(container) {    var _this = this;    this._container = container;    this._iframe = container.getElementsByTagName('iframe')[0];    this._iframe.contentDocument.open();    this._iframe.contentDocument.write(        '<html xmlns="http://www.w3.org/1999/xhtml">' +        '<head><title></title>' +        '<style type="text/css">' +        'body { margin: 0; font-family: sans-serif; font-size: 10pt; }' +        '</style></head>' +        '<body></body></html>');    this._iframe.contentDocument.close();    this._iframe.contentDocument.designMode = 'on';    this._originalHeight = this._iframe.contentDocument.body.scrollHeight;    this._iframe.contentWindow.addEventListener(        'scroll', function(event) {                        container.style.height =                _this._iframe.contentDocument.body.scrollHeight + 'px';        }, false);    this._iframe.contentWindow.addEventListener(        'resize', function(event) {            _this.onResize(container.clientHeight); }, false);    this._iframe.contentWindow.addEventListener(        'keypress', function(event) {            _this.pressedKey(event); }, false);    this._iframe.addEventListener(        'load', function(event) {            event.currentTarget && _this.onLoad(); }, true);    }
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/5c715e6f9c6d7e92ab3c68263cd40f989a6c8ef1/input.js/buggy/chrome/content/app/behaviours/input.js