[SSE] Fix position of statusbar context menu

This commit is contained in:
JuliaSvinareva 2021-08-18 17:29:07 +03:00
parent f144a76e1a
commit 96cee56f3e

View file

@ -909,7 +909,9 @@ define([
onCustomizeStatusBarAfterShow: function (obj) {
if (obj.atposition) {
obj.setOffset(obj.atposition.left);
var statusHeight = $(this.el).height(),
offsetTop = !this.isCompact && (obj.atposition.top - $(this.el).offset().top > statusHeight/2) ? statusHeight/2 : 0;
obj.setOffset(obj.atposition.left, offsetTop);
}
this.enableKeyEvents = true;
},