From e74eaea287dfd40c31e1eefb4c33b06c522a17d9 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Tue, 24 Mar 2015 16:53:17 +0300 Subject: [PATCH] IDEA-137947 Replacement hint interferes with the replacement text input --- .../src/com/intellij/find/impl/livePreview/LivePreview.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java b/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java index cabb8f3f2494..bbca8e8ad8f5 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java +++ b/platform/lang-impl/src/com/intellij/find/impl/livePreview/LivePreview.java @@ -406,7 +406,7 @@ public class LivePreview extends DocumentAdapter implements SearchResults.Search balloonBuilder.setCloseButtonEnabled(true); myReplacementBalloon = balloonBuilder.createBalloon(); - myReplacementBalloon.show(new ReplacementBalloonPositionTracker(editor), Balloon.Position.above); + myReplacementBalloon.show(new ReplacementBalloonPositionTracker(editor), Balloon.Position.below); } private void hideBalloon() { @@ -534,7 +534,7 @@ public class LivePreview extends DocumentAdapter implements SearchResults.Search Point startPoint = myEditor.visualPositionToXY(myEditor.offsetToVisualPosition(startOffset)); Point endPoint = myEditor.visualPositionToXY(myEditor.offsetToVisualPosition(endOffset)); - Point point = new Point((startPoint.x + endPoint.x)/2, startPoint.y); + Point point = new Point((startPoint.x + endPoint.x)/2, startPoint.y + myEditor.getLineHeight()); return new RelativePoint(myEditor.getContentComponent(), point); }