Changeset 17361 in josm for trunk/src


Ignore:
Timestamp:
2020-11-26T09:58:32+01:00 (4 years ago)
Author:
GerdP
Message:

Fix #18372: Notes description does not fit in box (sometimes)

  • increase magic number to 20 as proposed by mnalis
File:
1 edited

Legend:

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

    r16967 r17361  
    276276                v.setSize(maxWidth, 0);
    277277                int w = (int) Math.ceil(v.getPreferredSpan(View.X_AXIS));
    278                 int h = (int) Math.ceil(v.getPreferredSpan(View.Y_AXIS)) + 10;
     278                int h = (int) Math.ceil(v.getPreferredSpan(View.Y_AXIS)) + 20; // see #18372 and #15550
    279279                pane.setPreferredSize(new Dimension(w, h));
    280280            }
Note: See TracChangeset for help on using the changeset viewer.