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 f93a2d53d5e0..8b233be5fe75 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java @@ -1370,7 +1370,12 @@ public class AbstractPopup implements JBPopup, ScreenAreaConsumer, AlignedPopup PopupLocationTracker.register(this); - if (bounds.width > screen.width || bounds.height > screen.height) { + if ( + bounds.x < screen.x || + bounds.y < screen.y || + bounds.x + bounds.width > screen.x + screen.width || + bounds.y + bounds.height > screen.y + screen.height + ) { if (LOG.isDebugEnabled()) { LOG.debug("Bounds won't fit into the screen, adjusting"); }