Merge pull request 'Fix resizing of the plugin window' (#182) from fix/bugfix into release/v8.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/web-apps/pulls/182
This commit is contained in:
Julia Radzhabova
2024-12-16 13:47:39 +00:00

View File

@ -88,6 +88,7 @@ define([], function () {
this._headerFooterHeight += ((parseInt(this.$window.css('border-top-width')) + parseInt(this.$window.css('border-bottom-width'))));
if (Common.Utils.innerHeight()-this.bordersOffset*2 < this.options.contentHeight + this._headerFooterHeight) {
this._restoreHeight = this.options.contentHeight + this._headerFooterHeight;
this.options.contentHeight = Common.Utils.innerHeight()-this.bordersOffset*2 - this._headerFooterHeight;
this.boxEl.css('height', this.options.contentHeight);
}