mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure scrolling finished before popup is shown
This commit is contained in:
+9
-4
@@ -109,10 +109,15 @@ public class ExternalAnnotationsLineMarkerProvider implements LineMarkerProvider
|
||||
}
|
||||
}
|
||||
if (group.getChildrenCount() > 0) {
|
||||
JBPopupFactory.getInstance()
|
||||
.createActionGroupPopup(null, group, SimpleDataContext.getProjectContext(null),
|
||||
JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, true)
|
||||
.showInBestPositionFor(editor);
|
||||
editor.getScrollingModel().runActionOnScrollingFinished(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
JBPopupFactory.getInstance()
|
||||
.createActionGroupPopup(null, group, SimpleDataContext.getProjectContext(null),
|
||||
JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, true)
|
||||
.showInBestPositionFor(editor);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user