[java-stacktrace] Hide 'Find why' balloon on scrolling

GitOrigin-RevId: 68c6f26a8c92ca7d3299335460484b133ebdfbaf
This commit is contained in:
Tagir Valeev
2020-07-24 10:52:49 +00:00
committed by intellij-monorepo-bot
parent e4f3f6d93a
commit 9bebeeaeec
@@ -480,6 +480,9 @@ public class ExceptionWorker {
ref.set(balloon);
RelativePoint point = JBPopupFactory.getInstance().guessBestPopupLocation(editor);
balloon.show(point, Balloon.Position.below);
editor.getScrollingModel().addVisibleAreaListener(e -> {
Disposer.dispose(balloon);
}, balloon);
}
}