Merge pull request #1985 from ONLYOFFICE/fix/bug-59139
[PE] Fix Bug 59139
This commit is contained in:
commit
8ec390ba26
|
@ -1205,7 +1205,16 @@ define([
|
||||||
if (pasteContainer.is(':visible')) pasteContainer.hide();
|
if (pasteContainer.is(':visible')) pasteContainer.hide();
|
||||||
$(document).off('keyup', this.wrapEvents.onKeyUp);
|
$(document).off('keyup', this.wrapEvents.onKeyUp);
|
||||||
} else {
|
} else {
|
||||||
var showPoint = [coord.asc_getX() + coord.asc_getWidth() + 3, coord.asc_getY() + coord.asc_getHeight() + 3];
|
var offsetLeft = 0;
|
||||||
|
var sdkPanelLeft = documentHolder.cmpEl.find('#id_panel_left');
|
||||||
|
if (sdkPanelLeft.length)
|
||||||
|
offsetLeft += (sdkPanelLeft.css('display') !== 'none') ? sdkPanelLeft.width() : 0;
|
||||||
|
|
||||||
|
var sdkPanelThumbs = documentHolder.cmpEl.find('#id_panel_thumbnails');
|
||||||
|
if (sdkPanelThumbs.length)
|
||||||
|
offsetLeft += (sdkPanelThumbs.css('display') !== 'none') ? sdkPanelThumbs.width() : 0;
|
||||||
|
|
||||||
|
var showPoint = [Math.max(0, coord.asc_getX() + coord.asc_getWidth() + 3 - offsetLeft), coord.asc_getY() + coord.asc_getHeight() + 3];
|
||||||
pasteContainer.css({left: showPoint[0], top : showPoint[1]});
|
pasteContainer.css({left: showPoint[0], top : showPoint[1]});
|
||||||
pasteContainer.show();
|
pasteContainer.show();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|
Loading…
Reference in a new issue