Changeset 4120 in josm


Ignore:
Timestamp:
2011-06-05T13:28:03+02:00 (14 years ago)
Author:
stoecker
Message:

fix #4948 - patch by Hojoe - Relation Editor: Height of cells are too short to display the current font

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

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

    r3995 r4120  
    348348        );
    349349        tfRole.setEnabled(memberTable.getSelectedRowCount() > 0);
     350        memberTable.setRowHeight(tfRole.getPreferredSize().height);
    350351        SideButton btnApply = new SideButton(setRoleAction);
    351352        btnApply.setPreferredSize(new Dimension(20,20));
     
    425426        selectionTable = new SelectionTable(selectionTableModel, new SelectionTableColumnModel(memberTableModel));
    426427        selectionTable.setMemberTableModel(memberTableModel);
     428        selectionTable.setRowHeight(tfRole.getPreferredSize().height);
    427429        JScrollPane pane = new JScrollPane(selectionTable);
    428430        pnl.add(pane, BorderLayout.CENTER);
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java

    r3530 r4120  
    351351        // create the table cell editor and set it to key and value columns
    352352        //
    353         setTagCellEditor(new TagCellEditor());
     353        TagCellEditor tmpEditor = new TagCellEditor();
     354        setRowHeight(tmpEditor.getEditor().getPreferredSize().height);
     355        setTagCellEditor(tmpEditor);
    354356    }
    355357
Note: See TracChangeset for help on using the changeset viewer.