[DE] Fix menu position for content controls
This commit is contained in:
parent
cb238bf14f
commit
e0cdf0eba8
|
@ -445,7 +445,7 @@ define([
|
||||||
menuW = this.cmpCalendar.cmpEl.outerWidth(),
|
menuW = this.cmpCalendar.cmpEl.outerWidth(),
|
||||||
menuH = this.cmpCalendar.cmpEl.outerHeight(),
|
menuH = this.cmpCalendar.cmpEl.outerHeight(),
|
||||||
buttonOffset = 22,
|
buttonOffset = 22,
|
||||||
left = offset.left - menuW + buttonOffset,
|
left = offset.left - menuW,
|
||||||
top = offset.top;
|
top = offset.top;
|
||||||
if (top + menuH > docH) {
|
if (top + menuH > docH) {
|
||||||
top = docH - menuH;
|
top = docH - menuH;
|
||||||
|
@ -508,7 +508,7 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menuContainer.css({left: x + 22, top : y});
|
menuContainer.css({left: x, top : y});
|
||||||
menuContainer.attr('data-value', 'prevent-canvas-click');
|
menuContainer.attr('data-value', 'prevent-canvas-click');
|
||||||
documentHolderView._preventClick = true;
|
documentHolderView._preventClick = true;
|
||||||
menu.show();
|
menu.show();
|
||||||
|
|
Loading…
Reference in a new issue