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


Ignore:
Timestamp:
2016-02-27T10:25:56+01:00 (9 years ago)
Author:
simon04
Message:

fix #12563 - Try to avoid ... in status bar for custom LatLon formats

File:
1 edited

Legend:

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

    r9863 r9885  
    185185    private transient CoordinateFormat previousCoordinateFormat = null;
    186186    private final ImageLabel latText = new ImageLabel("lat",
    187             null, 11, PROP_BACKGROUND_COLOR.get());
     187            null, LatLon.SOUTH_POLE.latToString(CoordinateFormat.DEGREES_MINUTES_SECONDS).length(), PROP_BACKGROUND_COLOR.get());
    188188    private final ImageLabel lonText = new ImageLabel("lon",
    189             null, 11, PROP_BACKGROUND_COLOR.get());
     189            null, new LatLon(0, 180).lonToString(CoordinateFormat.DEGREES_MINUTES_SECONDS).length(), PROP_BACKGROUND_COLOR.get());
    190190    private final ImageLabel headingText = new ImageLabel("heading",
    191191            tr("The (compass) heading of the line segment being drawn."),
Note: See TracChangeset for help on using the changeset viewer.