mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-137947 Replacement hint interferes with the replacement text input
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user