Revert "popup with border positioning fix"

This reverts commit 3e935e05d5.
This commit is contained in:
Kirill Kalishev
2011-03-11 16:23:57 +03:00
parent 514e9b3387
commit 254bcb4065
@@ -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);
}
}