Changeset 9866 in josm


Ignore:
Timestamp:
2016-02-23T23:29:53+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #12559 - The “Skip Download” popup displays incorrectly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java

    r9833 r9866  
    435435    /**
    436436     * Tries to find a good value of how large the dialog should be
    437      * @return Dimension Size of the parent Component or 2/3 of screen size if not available
     437     * @return Dimension Size of the parent component if visible or 2/3 of screen size if not available or hidden
    438438     */
    439439    protected Dimension findMaxDialogSize() {
    440440        Dimension screenSize = GuiHelper.getScreenSize();
    441441        Dimension x = new Dimension(screenSize.width*2/3, screenSize.height*2/3);
    442         if (parent != null) {
     442        if (parent != null && parent.isVisible()) {
    443443            x = JOptionPane.getFrameForComponent(parent).getSize();
    444444        }
Note: See TracChangeset for help on using the changeset viewer.