mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ui: set popup window minimum size before showing it
* avoid flickering, when window is resized immediately after being shown
This commit is contained in:
@@ -973,12 +973,13 @@ public class AbstractPopup implements JBPopup {
|
||||
myContent.getRootPane().putClientProperty("SIMPLE_WINDOW", "SIMPLE_WINDOW".equals(data));
|
||||
}
|
||||
|
||||
myWindow = window;
|
||||
setMinimumSize(myMinSize);
|
||||
|
||||
myPopup.show();
|
||||
|
||||
WindowAction.setEnabledFor(myPopup.getWindow(), myResizable);
|
||||
|
||||
myWindow = window;
|
||||
|
||||
myWindowListener = new MyWindowListener();
|
||||
window.addWindowListener(myWindowListener);
|
||||
|
||||
@@ -991,8 +992,6 @@ public class AbstractPopup implements JBPopup {
|
||||
}
|
||||
}
|
||||
|
||||
setMinimumSize(myMinSize);
|
||||
|
||||
final Runnable afterShow = () -> {
|
||||
if (isDisposed()) {
|
||||
LOG.debug("popup is disposed after showing");
|
||||
|
||||
Reference in New Issue
Block a user