Ticket #19876: 19876.2.patch

File 19876.2.patch, 876 bytes (added by GerdP, 4 years ago)

use pack() in constructor of PreferenceDialog

  • src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java

     
    5858        // set the maximum width to the current screen. If the dialog is opened on a
    5959        // smaller screen than before, this will reset the stored preference.
    6060        this.setMaximumSize(GuiHelper.getScreenSize());
     61        pack();
    6162    }
    6263
    6364    protected JPanel buildActionPanel() {
     
    229230    public void dispose() {
    230231        previouslySelected = tpPreferences.getSelectedTab();
    231232        removeWindowListener(windowEventHandler);
     233        setVisible(false); // save current geometry
    232234        super.dispose();
    233235    }
    234236}