Changeset 9272 in josm for trunk/src/org


Ignore:
Timestamp:
2016-01-03T01:21:57+01:00 (4 years ago)
Author:
simon04
Message:

see #12275 - Provide space depending on decimal places in status line

File:
1 edited

Legend:

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

    r9269 r9272  
    187187            tr("The geographic longitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get());
    188188    private final ImageLabel headingText = new ImageLabel("heading",
    189             tr("The (compass) heading of the line segment being drawn."), 6, PROP_BACKGROUND_COLOR.get());
     189            tr("The (compass) heading of the line segment being drawn."),
     190            ONE_DECIMAL_PLACE.format(360).length() + 1, PROP_BACKGROUND_COLOR.get());
    190191    private final ImageLabel angleText = new ImageLabel("angle",
    191             tr("The angle between the previous and the current way segment."), 6, PROP_BACKGROUND_COLOR.get());
     192            tr("The angle between the previous and the current way segment."),
     193            ONE_DECIMAL_PLACE.format(360).length() + 1, PROP_BACKGROUND_COLOR.get());
    192194    private final ImageLabel distText = new ImageLabel("dist",
    193195            tr("The length of the new way segment being drawn."), 10, PROP_BACKGROUND_COLOR.get());
Note: See TracChangeset for help on using the changeset viewer.