Ticket #3470: prevent_scroll_in_scroll_for_status_report.patch

File prevent_scroll_in_scroll_for_status_report.patch, 923 bytes (added by xeen, 15 years ago)
  • src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

     
    9797        ta.setLineWrap(true);
    9898        ta.setEditable(false);
    9999        JScrollPane sp = new JScrollPane(ta);
    100         sp.setPreferredSize(new Dimension(600, 500));
    101100
    102101        ExtendedDialog ed = new ExtendedDialog(Main.parent,
    103102                tr("Status Report"),
    104103                new String[] {tr("Copy to clipboard and close"), tr("Close") });
    105104        ed.setButtonIcons(new String[] {"copy.png", "cancel.png" });
    106         ed.setContent(sp);
     105        ed.setContent(sp, false);
     106        ed.setMinimumSize(new Dimension(500, 0));
    107107        ed.showDialog();
    108108
    109109        if(ed.getValue() != 1) return;