mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 12:01:20 +02:00
Fix htmlarea resize
This commit is contained in:
@ -338,6 +338,7 @@ var et2_htmlarea = /** @class */ (function (_super) {
|
|||||||
* @param {type} _height excess height which comes from window resize
|
* @param {type} _height excess height which comes from window resize
|
||||||
*/
|
*/
|
||||||
et2_htmlarea.prototype.resize = function (_height) {
|
et2_htmlarea.prototype.resize = function (_height) {
|
||||||
|
var _a, _b;
|
||||||
if (_height && this.options.resize_ratio !== '0') {
|
if (_height && this.options.resize_ratio !== '0') {
|
||||||
// apply the ratio
|
// apply the ratio
|
||||||
_height = (this.options.resize_ratio != '') ? _height * this.options.resize_ratio : _height;
|
_height = (this.options.resize_ratio != '') ? _height * this.options.resize_ratio : _height;
|
||||||
@ -354,8 +355,7 @@ var et2_htmlarea = /** @class */ (function (_super) {
|
|||||||
h = this.editor.settings.min_height + _height;
|
h = this.editor.settings.min_height + _height;
|
||||||
}
|
}
|
||||||
jQuery(this.editor.editorContainer).height(h);
|
jQuery(this.editor.editorContainer).height(h);
|
||||||
jQuery(this.editor.iframeElement).height(h - (this.editor.editorContainer.getElementsByClassName('tox-toolbar')[0].clientHeight +
|
jQuery(this.editor.iframeElement).height(h - (((_a = this.editor.editorContainer.getElementsByClassName('tox-editor-header')[0]) === null || _a === void 0 ? void 0 : _a.clientHeight) + ((_b = this.editor.editorContainer.getElementsByClassName('tox-statusbar')[0]) === null || _b === void 0 ? void 0 : _b.clientHeight)));
|
||||||
this.editor.editorContainer.getElementsByClassName('tox-statusbar')[0].clientHeight));
|
|
||||||
}
|
}
|
||||||
else // No TinyMCE
|
else // No TinyMCE
|
||||||
{
|
{
|
||||||
|
@ -531,8 +531,8 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
|
|||||||
h = this.editor.settings.min_height + _height;
|
h = this.editor.settings.min_height + _height;
|
||||||
}
|
}
|
||||||
jQuery(this.editor.editorContainer).height(h);
|
jQuery(this.editor.editorContainer).height(h);
|
||||||
jQuery(this.editor.iframeElement).height(h - (this.editor.editorContainer.getElementsByClassName('tox-toolbar')[0].clientHeight +
|
jQuery(this.editor.iframeElement).height(h - (this.editor.editorContainer.getElementsByClassName('tox-editor-header')[0]?.clientHeight +
|
||||||
this.editor.editorContainer.getElementsByClassName('tox-statusbar')[0].clientHeight));
|
this.editor.editorContainer.getElementsByClassName('tox-statusbar')[0]?.clientHeight));
|
||||||
}
|
}
|
||||||
else // No TinyMCE
|
else // No TinyMCE
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user