Project

General

Profile

Bug #23676 » rtehtmlarea_bugfix_15899_trunk.patch

Administrator Admin, 2010-10-05 06:29

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());
}
},
(1-1/2)