mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix ex component must be showning to determine its location
This commit is contained in:
@@ -288,7 +288,7 @@ public abstract class WizardPopup extends AbstractPopup implements ActionListene
|
||||
public Dimension getPreferredSize() {
|
||||
final Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
|
||||
Point p = null;
|
||||
if (focusOwner != null && focusOwner.isVisible()) {
|
||||
if (focusOwner != null && focusOwner.isShowing()) {
|
||||
p = focusOwner.getLocationOnScreen();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user