Changeset 15802 in josm for trunk


Ignore:
Timestamp:
2020-01-31T00:07:30+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18523 - fix upload dialog layout (patch by taylor.smock)

Location:
trunk/src/org/openstreetmap/josm/gui/io
Files:
2 edited

Legend:

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

    r15796 r15802  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.awt.BorderLayout;
    67import java.awt.GridBagLayout;
    78import java.awt.event.ActionEvent;
     
    177178
    178179    protected void build() {
    179         setLayout(new GridBagLayout());
     180        setLayout(new BorderLayout());
    180181        setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
    181         add(buildUploadCommentPanel(), GBC.eol().fill(GBC.BOTH));
    182         add(pnlUploadParameterSummary, GBC.eol().fill(GBC.BOTH));
    183         add(cbRequestReview, GBC.eol().fill(GBC.BOTH));
     182        add(buildUploadCommentPanel(), BorderLayout.NORTH);
     183        add(pnlUploadParameterSummary, BorderLayout.CENTER);
     184        add(cbRequestReview, BorderLayout.SOUTH);
    184185        cbRequestReview.addItemListener(e -> changesetReviewModel.setReviewRequested(e.getStateChange() == ItemEvent.SELECTED));
    185186    }
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r15121 r15802  
    433433        @Override
    434434        public Dimension getPreferredSize() {
     435            // This probably fixes #18523. Don't know why. Don't know how. It just does.
     436            super.getPreferredSize();
    435437            // make sure the tabbed pane never grabs more space than necessary
    436438            return super.getMinimumSize();
Note: See TracChangeset for help on using the changeset viewer.