mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
even in a scrolled down editor, lookup shouldn't appear on another monitor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user