Ticket #18523: 18523.revert_gridbaglayout_add_seemingly_unnecessary_call.patch
File 18523.revert_gridbaglayout_add_seemingly_unnecessary_call.patch, 1.9 KB (added by , 5 years ago) |
---|
-
src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.BorderLayout; 6 7 import java.awt.GridBagLayout; 7 8 import java.awt.event.ActionEvent; 8 9 import java.awt.event.ActionListener; … … 176 177 } 177 178 178 179 protected void build() { 179 setLayout(new GridBagLayout());180 setLayout(new BorderLayout()); 180 181 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); 184 185 cbRequestReview.addItemListener(e -> changesetReviewModel.setReviewRequested(e.getStateChange() == ItemEvent.SELECTED)); 185 186 } 186 187 -
src/org/openstreetmap/josm/gui/io/UploadDialog.java
432 432 static final class CompactTabbedPane extends JTabbedPane { 433 433 @Override 434 434 public Dimension getPreferredSize() { 435 // This probably fixes #18523. Don't know why. Don't know how. It just does. 436 super.getPreferredSize(); 435 437 // make sure the tabbed pane never grabs more space than necessary 436 438 return super.getMinimumSize(); 437 439 }