Ticket #18523: 18523.manually_set_minimum_size.patch

File 18523.manually_set_minimum_size.patch, 1.0 KB (added by taylor.smock, 5 years ago)
  • src/org/openstreetmap/josm/gui/io/UploadDialog.java

     
    144144        tpConfigPanels = new CompactTabbedPane();
    145145
    146146        pnlBasicUploadSettings = new BasicUploadSettingsPanel(changesetCommentModel, changesetSourceModel, changesetReviewModel);
     147        Dimension pnlBasicUploadSettingsSize = pnlBasicUploadSettings.getPreferredSize();
     148        pnlBasicUploadSettingsSize.setSize(pnlBasicUploadSettingsSize.getWidth(),
     149                pnlBasicUploadSettingsSize.getHeight() + 10 * Config.getPref().getDouble("gui.scale.menu.font", 1.0));
     150        pnlBasicUploadSettings.setMinimumSize(pnlBasicUploadSettingsSize);
    147151        tpConfigPanels.add(pnlBasicUploadSettings);
    148152        tpConfigPanels.setTitleAt(0, tr("Settings"));
    149153        tpConfigPanels.setToolTipTextAt(0, tr("Decide how to upload the data and which changeset to use"));