Changeset 7601 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2014-10-05T22:30:57+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10599 - different height of rows in relation editor

File:
1 edited

Legend:

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

    r7556 r7601  
    438438     */
    439439    protected JPanel buildSelectionTablePanel() {
    440         JPanel pnl = new JPanel();
    441         pnl.setLayout(new BorderLayout());
     440        JPanel pnl = new JPanel(new BorderLayout());
     441        MemberRoleCellEditor ce = (MemberRoleCellEditor)memberTable.getColumnModel().getColumn(0).getCellEditor();
    442442        selectionTable = new SelectionTable(selectionTableModel, new SelectionTableColumnModel(memberTableModel));
    443443        selectionTable.setMemberTableModel(memberTableModel);
    444         selectionTable.setRowHeight(tfRole.getPreferredSize().height);
    445         JScrollPane pane = new JScrollPane(selectionTable);
    446         pnl.add(pane, BorderLayout.CENTER);
     444        selectionTable.setRowHeight(ce.getEditor().getPreferredSize().height);
     445        pnl.add(new JScrollPane(selectionTable), BorderLayout.CENTER);
    447446        return pnl;
    448447    }
Note: See TracChangeset for help on using the changeset viewer.