mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 07:31:55 +08:00
[PE] Fix anim effect menu position
This commit is contained in:
@ -492,6 +492,16 @@ define([
|
||||
menu.cmpEl.attr({tabindex: "-1"});
|
||||
}
|
||||
|
||||
if (event.get_Type() == Asc.c_oAscContextMenuTypes.AnimEffect) {
|
||||
showPoint[0] += event.get_ButtonWidth() + 2;
|
||||
showPoint[1] += event.get_ButtonHeight() + 2;
|
||||
menu.menuAlign = 'tr-br';
|
||||
if (me.documentHolder.cmpEl.offset().top + showPoint[1] + menu.menuRoot.outerHeight() > Common.Utils.innerHeight() - 10) {
|
||||
showPoint[1] -= event.get_ButtonHeight() + 4;
|
||||
menu.menuAlign = 'br-tr';
|
||||
}
|
||||
}
|
||||
|
||||
menuContainer.css({
|
||||
left: showPoint[0],
|
||||
top : showPoint[1]
|
||||
|
||||
@ -2474,7 +2474,7 @@ define([
|
||||
me.animEffectMenu = new Common.UI.Menu({
|
||||
restoreHeightAndTop: true,
|
||||
scrollToCheckedItem: false,
|
||||
menuAlign: 'tl-bl',
|
||||
menuAlign: 'tr-br',
|
||||
style: 'min-width: auto;',
|
||||
initMenu: function(value){
|
||||
me.menuAnimStartOnClick.setChecked(value.effect === AscFormat.NODE_TYPE_CLICKEFFECT, true);
|
||||
|
||||
Reference in New Issue
Block a user