Changeset 16564 in osm
- Timestamp:
- 2009-07-18T18:11:16+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java
r16294 r16564 162 162 } 163 163 164 // FIXME hiehgt calculations doesn't work with all LAFs165 int lineCount = lines.length;166 int HR_SIZE = 10;167 int tooltipHeight = lineCount * (int)fontBounds.getHeight() + HR_SIZE * (lineCount - 1);168 169 164 // draw description as a tooltip 170 165 tooltip.setTipText(desc); 171 tooltip.setSize(tooltip Width+10, tooltipHeight + 6);172 166 tooltip.setSize(tooltip.getUI().getPreferredSize(tooltip)); 167 173 168 int tx = p.x + (width / 2) + 5; 174 int ty = (int)(p.y - height / 2) ;169 int ty = (int)(p.y - height / 2) -1; 175 170 g.translate(tx, ty); 176 171 tooltip.paint(g);
Note:
See TracChangeset
for help on using the changeset viewer.