From 08a95a4d58320bffd6ca83ecf98b3f17c5d850fd Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 5 Sep 2012 11:55:01 +0200 Subject: [PATCH] the infrastructure manages hint position pretty well, no need to do it manually (the cause of IDEA-90637) --- .../intellij/codeInsight/hint/ShowParameterInfoContext.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hint/ShowParameterInfoContext.java b/platform/lang-impl/src/com/intellij/codeInsight/hint/ShowParameterInfoContext.java index 1ecd89452cf9..8753399e67e7 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hint/ShowParameterInfoContext.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hint/ShowParameterInfoContext.java @@ -249,11 +249,6 @@ public class ShowParameterInfoContext implements CreateParameterInfoContext { } else { Point p = HintManagerImpl.getHintPosition(hint, myEditor, pos, HintManager.ABOVE); - Dimension hintSize = hint.getComponent().getPreferredSize(); - JComponent editorComponent = myEditor.getComponent(); - JLayeredPane layeredPane = editorComponent.getRootPane().getLayeredPane(); - p.x = Math.min(p.x, layeredPane.getWidth() - hintSize.width); - p.x = Math.max(p.x, 0); position = new Pair(p, HintManager.ABOVE); } previousBestPoint = position.getFirst();