mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
the infrastructure manages hint position pretty well, no need to do it manually (the cause of IDEA-90637)
This commit is contained in:
@@ -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<Point, Short>(p, HintManager.ABOVE);
|
||||
}
|
||||
previousBestPoint = position.getFirst();
|
||||
|
||||
Reference in New Issue
Block a user