IDEA-137947 Replacement hint interferes with the replacement text input

This commit is contained in:
Sergey Malenkov
2015-03-24 16:53:17 +03:00
parent 4901174c47
commit e74eaea287
@@ -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);
}