Skip to content

Commit

Permalink
Merge pull request '[SSE] Fix Bug 71960' (#160) from fix/bugfix into …
Browse files Browse the repository at this point in the history
…release/v8.3.0
  • Loading branch information
Julia Radzhabova committed Dec 5, 2024
2 parents c844b9a + 8c28a21 commit 977c9dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/spreadsheeteditor/main/app/view/Statusbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,11 @@ define([

var tabEl = tab.$el;
this.tabMenu.atposition = function () {
var parentEl = tabEl.parent();
if (parentEl.length<1) return;

var rect = Common.Utils.getBoundingClientRect(tabEl.get(0)),
parentPos = Common.Utils.getOffset(tabEl.parent());
parentPos = Common.Utils.getOffset(parentEl);
return {
top : rect.top,
left: rect.left - parentPos.left - 2,
Expand All @@ -700,7 +703,7 @@ define([
onTabMenuAfterShow: function (obj) {
if (obj.atposition) {
var pos = this.tabMenu.atposition();
obj.setOffset(Common.UI.isRTL() ? (pos.right - $(obj.el).width()) : pos.left);
pos && obj.setOffset(Common.UI.isRTL() ? (pos.right - $(obj.el).width()) : pos.left);
}

this.enableKeyEvents = true;
Expand Down

0 comments on commit 977c9dc

Please sign in to comment.