Skip to content

Commit

Permalink
Merge pull request 'Fix resizing of the plugin window' (#182) from fi…
Browse files Browse the repository at this point in the history
…x/bugfix into release/v8.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/web-apps/pulls/182
  • Loading branch information
Julia Radzhabova committed Dec 16, 2024
2 parents cda129b + 6f93027 commit 9e777cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/common/main/lib/view/PluginDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9e777cb

Please sign in to comment.