Changeset 12080 in josm for trunk


Ignore:
Timestamp:
2017-05-07T00:34:54+02:00 (8 years ago)
Author:
michael2402
Message:

Relation editor: Make button tool bars scroll if the window is too small to show all of them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    r11848 r12080  
    6060import org.openstreetmap.josm.gui.DefaultNameFormatter;
    6161import org.openstreetmap.josm.gui.MainMenu;
     62import org.openstreetmap.josm.gui.ScrollViewport;
    6263import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils;
    6364import org.openstreetmap.josm.gui.dialogs.relation.actions.AddSelectedAfterSelection;
     
    465466        gc.weightx = 0.0;
    466467        gc.weighty = 1.0;
    467         pnl.add(leftButtonToolbar, gc);
     468        pnl.add(new ScrollViewport(leftButtonToolbar, ScrollViewport.VERTICAL_DIRECTION), gc);
    468469
    469470        gc.gridx = 1;
     
    521522        gc.weightx = 0.0;
    522523        gc.weighty = 1.0;
    523         pnl2.add(buildSelectionControlButtonToolbar(memberTable, memberTableModel, selectionTableModel, re), gc);
     524        pnl2.add(new ScrollViewport(buildSelectionControlButtonToolbar(memberTable, memberTableModel, selectionTableModel, re),
     525                ScrollViewport.VERTICAL_DIRECTION), gc);
    524526
    525527        gc.gridx = 1;
Note: See TracChangeset for help on using the changeset viewer.