From 6f8574f2903452861ef736acb81df91ba4002884 Mon Sep 17 00:00:00 2001 From: "peter.gromov" Date: Thu, 16 Dec 2010 13:40:22 +0300 Subject: [PATCH] even in a scrolled down editor, lookup shouldn't appear on another monitor --- .../src/com/intellij/codeInsight/hint/HintManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/codeInsight/hint/HintManagerImpl.java b/platform/platform-impl/src/com/intellij/codeInsight/hint/HintManagerImpl.java index a4e841865565..f84f2d0a337e 100644 --- a/platform/platform-impl/src/com/intellij/codeInsight/hint/HintManagerImpl.java +++ b/platform/platform-impl/src/com/intellij/codeInsight/hint/HintManagerImpl.java @@ -368,7 +368,7 @@ public class HintManagerImpl extends HintManager implements Disposable { Dimension size = hint.getComponent().getPreferredSize(); if (hint.isRealPopup()) { - final Point editorCorner = editor.getContentComponent().getLocation(); + final Point editorCorner = editor.getComponent().getLocation(); SwingUtilities.convertPointToScreen(editorCorner, layeredPane); final Rectangle editorScreen = ScreenUtil.getScreenRectangle(editorCorner.x, editorCorner.y);