From 8295fd340f4bd87f1350b054d4c86fd3c3ff39de Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 13 Jan 2025 21:24:00 +0300 Subject: [PATCH] Fix Bug 72462 --- apps/common/main/lib/controller/Comments.js | 2 +- apps/common/main/lib/controller/ReviewChanges.js | 2 +- apps/common/main/lib/view/ReviewPopover.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index 2b0471ee10..c4e68e08e4 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -996,7 +996,7 @@ define([ this.getPopover().saveText(); this.getPopover().hideTips(); - if (posY < 0 || this.getPopover().sdkBounds.height < posY || (!_.isUndefined(leftX) && this.getPopover().sdkBounds.width < leftX)) { + if (posY < 0 || this.getPopover().sdkBounds.outerHeight < posY || (!_.isUndefined(leftX) && this.getPopover().sdkBounds.width < leftX)) { this.getPopover().hide(); } else { if (this.isModeChanged) diff --git a/apps/common/main/lib/controller/ReviewChanges.js b/apps/common/main/lib/controller/ReviewChanges.js index 24c6c2ab90..aa07acabdf 100644 --- a/apps/common/main/lib/controller/ReviewChanges.js +++ b/apps/common/main/lib/controller/ReviewChanges.js @@ -294,7 +294,7 @@ define([ saveTxtReplyId = ''; if (this.getPopover()) { - if (posY < 0 || this.getPopover().sdkBounds.height < posY) { + if (posY < 0 || this.getPopover().sdkBounds.outerHeight < posY) { this.getPopover().hide(); } else if (this.popoverChanges.length>0) { if (!this.getPopover().isVisible()) diff --git a/apps/common/main/lib/view/ReviewPopover.js b/apps/common/main/lib/view/ReviewPopover.js index 8bb942c094..ebd70a226a 100644 --- a/apps/common/main/lib/view/ReviewPopover.js +++ b/apps/common/main/lib/view/ReviewPopover.js @@ -109,7 +109,7 @@ define([ _options.tpl = _.template(this.template)(_options); this.arrow = {margin: 20, width: 10, height: 30}; - this.sdkBounds = {width: 0, height: 0, padding: 10, paddingTop: 20}; + this.sdkBounds = {width: 0, height: 0, outerWidth: 0, outerHeight: 0, padding: 10, paddingTop: 20}; Common.UI.Window.prototype.initialize.call(this, _options); @@ -772,8 +772,8 @@ define([ this.$window.css({maxHeight: sdkBoundsHeight + 'px'}); - this.sdkBounds.width = editorBounds.width; - this.sdkBounds.height = editorBounds.height; + this.sdkBounds.width = this.sdkBounds.outerWidth = editorBounds.width; + this.sdkBounds.height = this.sdkBounds.outerHeight = editorBounds.height; // LEFT CORNER