Changeset 11196 in josm


Ignore:
Timestamp:
2016-10-30T22:07:00+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #13873 - reduce default height of bug report dialog from 899px to 716px

Location:
trunk/src/org/openstreetmap/josm/tools/bugreport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportDialog.java

    r11102 r11196  
    100100        messageLabel.setMaxWidth(MAX_MESSAGE_SIZE);
    101101        panel.add(messageLabel, GBC.eol().fill());
    102         content.add(panel, GBC.eop().fill(GBC.HORIZONTAL).insets(20));
     102        content.add(panel, GBC.eop().fill(GBC.HORIZONTAL).insets(20, 10, 10, 10));
    103103    }
    104104
     
    108108        panel.add(textPanel, GBC.eop().fill());
    109109
    110         panel.add(new JLabel(tr("Manually report at:")), GBC.std());
     110        panel.add(new JLabel(tr("Manually report at:")+' '), GBC.std());
    111111        panel.add(new UrlLabel(Main.getJOSMWebsite() + "/newticket"), GBC.std().fill(GBC.HORIZONTAL));
    112112        JButton copy = new JButton("Copy to clipboard");
     
    135135        panel.add(helpText, GBC.eop().fill(GridBagConstraints.HORIZONTAL));
    136136
     137        Component settings = GBC.glue(0, 0);
    137138        if (ExpertToggleAction.isExpert()) {
    138139            // The default settings should be fine in most situations.
    139             panel.add(new BugReportSettingsPanel(report), GBC.eop().fill(GBC.HORIZONTAL));
    140         }
     140            settings = new BugReportSettingsPanel(report);
     141        }
     142        panel.add(settings);
    141143
    142144        JButton sendBugReportButton = new JButton(tr("Report Bug"), ImageProvider.get("bug"));
    143145        sendBugReportButton.addActionListener(e -> sendBug());
    144         panel.add(sendBugReportButton, GBC.eop().anchor(GBC.EAST));
     146        panel.add(sendBugReportButton, GBC.eol().insets(0, 0, 0, 0).anchor(GBC.SOUTHEAST));
    145147        content.add(panel, GBC.eop().fill(GBC.HORIZONTAL));
    146148    }
     
    148150    private static void addBorder(JPanel panel, String title) {
    149151        panel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(title), BorderFactory
    150                 .createEmptyBorder(10, 10, 10, 10)));
     152                .createEmptyBorder(5, 5, 5, 5)));
    151153    }
    152154
     
    162164        ignore.addActionListener(e -> closeDialog());
    163165        panel.add(ignore, GBC.std(1, 0).span(1, 2).anchor(GBC.CENTER));
    164         content.add(panel, GBC.eol().fill(GBC.HORIZONTAL).insets(20));
     166        content.add(panel, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 10, 10));
    165167    }
    166168
  • trunk/src/org/openstreetmap/josm/tools/bugreport/DebugTextDisplay.java

    r11102 r11196  
    2929        textArea.setEditable(false);
    3030        setViewportView(textArea);
    31         setPreferredSize(new Dimension(600, 300));
     31        setPreferredSize(new Dimension(600, 270));
    3232    }
    3333
  • trunk/src/org/openstreetmap/josm/tools/bugreport/JosmUpdatePanel.java

    r10830 r11196  
    3535        josmVersion = Version.getInstance().getVersion();
    3636
    37         add(new JMultilineLabel(tr("Your current version of JOSM is {0}", josmVersion)), GBC.eop().fill(GBC.HORIZONTAL));
     37        add(new JMultilineLabel(tr("Your current version of JOSM is {0}", josmVersion)), GBC.eol().fill(GBC.HORIZONTAL));
    3838        testedVersionField = new JMultilineLabel(tr("JOSM is searching for updates..."));
    39         add(testedVersionField, GBC.eop().fill(GBC.HORIZONTAL));
     39        add(testedVersionField, GBC.eol().fill(GBC.HORIZONTAL));
    4040
    4141        checkCurrentVersion();
Note: See TracChangeset for help on using the changeset viewer.