[SSE] Change button position for special paste.
This commit is contained in:
parent
f17a9dace5
commit
795306fa19
|
@ -1600,7 +1600,6 @@ define([
|
|||
var me = this,
|
||||
documentHolderView = me.documentHolder,
|
||||
coord = specialPasteShowOptions.asc_getCellCoord(),
|
||||
showPoint = [coord.asc_getX() + coord.asc_getWidth() + 3, coord.asc_getY() + coord.asc_getHeight() + 3],
|
||||
pasteContainer = documentHolderView.cmpEl.find('#special-paste-container'),
|
||||
pasteItems = specialPasteShowOptions.asc_getOptions();
|
||||
|
||||
|
@ -1636,6 +1635,7 @@ define([
|
|||
me.btnSpecialPaste.render($('#id-document-holder-btn-special-paste')) ;
|
||||
}
|
||||
|
||||
if (pasteItems.length>0) {
|
||||
var menu = me.btnSpecialPaste.menu;
|
||||
for (var i = 0; i < menu.items.length; i++) {
|
||||
menu.removeItem(menu.items[i]);
|
||||
|
@ -1666,8 +1666,14 @@ define([
|
|||
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
|
||||
}
|
||||
if (coord.asc_getX()<0 || coord.asc_getY()<0) {
|
||||
if (pasteContainer.is(':visible')) pasteContainer.hide();
|
||||
} else {
|
||||
var showPoint = [coord.asc_getX() + coord.asc_getWidth() + 3, coord.asc_getY() + coord.asc_getHeight() + 3];
|
||||
pasteContainer.css({left: showPoint[0], top : showPoint[1]});
|
||||
pasteContainer.show();
|
||||
}
|
||||
},
|
||||
|
||||
onHideSpecialPasteOptions: function() {
|
||||
|
|
Loading…
Reference in a new issue