Ignore:
Timestamp:
2012-01-08T18:23:05+01:00 (12 years ago)
Author:
bastiK
Message:

see #7219 - CT-Column-Title in history window only displays ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java

    r4601 r4775  
    3131import javax.swing.table.TableCellRenderer;
    3232
     33import org.openstreetmap.josm.Main;
    3334import org.openstreetmap.josm.actions.AbstractInfoAction;
    3435import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive;
     
    224225        Object val = tbl.getColumnModel().getColumn(col).getHeaderValue();
    225226        Component comp = tcr.getTableCellRendererComponent(tbl, val, false, false, -1, col);
    226         maxwidth = Math.max(comp.getPreferredSize().width, maxwidth);
     227        maxwidth = Math.max(comp.getPreferredSize().width + Main.pref.getInteger("table.header-inset", 2), maxwidth);
    227228
    228229        int spacing = tbl.getIntercellSpacing().width;
Note: See TracChangeset for help on using the changeset viewer.