From 254bcb4065e5aba43b60cb6fe76c27bd06c94a1e Mon Sep 17 00:00:00 2001 From: Kirill Kalishev Date: Fri, 11 Mar 2011 16:23:57 +0300 Subject: [PATCH] Revert "popup with border positioning fix" This reverts commit 3e935e05d53000815d844aeb19978590c81593e7. --- .../src/com/intellij/ui/popup/AbstractPopup.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java index 61fb6aaa44e9..5e76d9d440d6 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java @@ -1093,11 +1093,7 @@ public class AbstractPopup implements JBPopup { myForcedLocation = screenPoint; } else { - Insets insets = myPopupBorder.getBorderInsets(myContent); - if (insets == null) { - insets = new Insets(0, 0, 0, 0); - } - moveTo(myContent, new Point(screenPoint.x - insets.left, screenPoint.y - insets.top), myLocateByContent ? myHeaderPanel.getPreferredSize() : null); + moveTo(myContent, screenPoint, myLocateByContent ? myHeaderPanel.getPreferredSize() : null); } }