Fix Bug 72462

This commit is contained in:
Julia Radzhabova
2025-01-13 21:24:00 +03:00
parent b81516acd5
commit 8295fd340f
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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())

View File

@ -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