Project

General

Profile

Bug #23676 » rtehtmlarea_bugfix_15899_typo3_4-4.patch

Administrator Admin, 2010-11-25 23:38

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
* Resize the framework components
*/
onFrameworkResize: function () {
this.iframe.setSize(this.getInnerWidth(), this.getInnerHeight());
// For unknown reason, in Chrome 7, this following is the only way to set the height of the iframe
if (Ext.isChrome) {
this.iframe.getResizeEl().dom.setAttribute('style', 'width:' + this.getInnerWidth() + 'px; height:' + this.getInnerHeight() + 'px;');
} else {
this.iframe.setSize(this.getInnerWidth(), this.getInnerHeight());
}
this.textArea.setSize(this.getInnerWidth(), this.getInnerHeight());
},
/*
......
if (this.getInnerHeight() <= 0) {
this.onWindowResize();
} else {
this.iframe.setHeight(this.getInnerHeight());
// For unknown reason, in Chrome 7, this following is the only way to set the height of the iframe
if (Ext.isChrome) {
this.iframe.getResizeEl().dom.setAttribute('style', 'width:' + this.getInnerWidth() + 'px; height:' + this.getInnerHeight() + 'px;');
} else {
this.iframe.setHeight(this.getInnerHeight());
}
this.textArea.setHeight(this.getInnerHeight());
}
},
(2-2/2)