mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 07:31:55 +08:00
[PE] Fix animation panel (2)
This commit is contained in:
@ -493,12 +493,16 @@ define([
|
||||
}
|
||||
|
||||
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';
|
||||
if (event.get_ButtonWidth()) {
|
||||
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';
|
||||
}
|
||||
} else {
|
||||
menu.menuAlign = 'tl-tr';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2474,7 +2474,6 @@ define([
|
||||
me.animEffectMenu = new Common.UI.Menu({
|
||||
restoreHeightAndTop: true,
|
||||
scrollToCheckedItem: false,
|
||||
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