diff --git a/apps/pdfeditor/main/app/controller/DocumentHolderExt.js b/apps/pdfeditor/main/app/controller/DocumentHolderExt.js index ebf8c72ae5..f71b6d6aa7 100644 --- a/apps/pdfeditor/main/app/controller/DocumentHolderExt.js +++ b/apps/pdfeditor/main/app/controller/DocumentHolderExt.js @@ -895,6 +895,20 @@ define([], function () { var showPoint = [(bounds[0] + bounds[2])/2 - textContainer.outerWidth()/2, me.lastAnnotSelBarOnTop ? bounds[1] - textContainer.outerHeight() - 10 : bounds[3] + 10]; (showPoint[0]<0) && (showPoint[0] = 0); showPoint[1] = Math.min(me._Height - textContainer.outerHeight(), Math.max(0, showPoint[1])); + + var popover = this.getApplication().getController('Common.Controllers.Comments').getPopover(); + if (popover && popover.isVisible()) { + var bounds = { + left: popover.getLeft(), right: popover.getLeft() + popover.getWidth(), + top: popover.getTop(), bottom: popover.getTop() + popover.getHeight() + }, + right = showPoint[0] + textContainer.outerWidth(), + bottom = showPoint[1] + textContainer.outerHeight(); + if ((right>bounds.left && rightbounds.left && showPoint[0]bounds.top && showPoint[1]bounds.top && bottom