Changeset 711
- Timestamp:
- 01/16/14 15:59:39 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Item.java
r707 r711 1189 1189 int x = bounds.x + bounds.width; 1190 1190 if(x + _tooltipItem.getPolygon().getBounds().width > FrameGraphics.getMaxFrameSize().width) { 1191 x = bounds.x - _tooltipItem.getPolygon().getBounds().width;1192 } 1193 int y = bounds.y + bounds.height ;1191 x -= x + _tooltipItem.getPolygon().getBounds().width - FrameGraphics.getMaxFrameSize().width; 1192 } 1193 int y = bounds.y + bounds.height + bounds.height / 2; 1194 1194 if(y + _tooltipItem.getPolygon().getBounds().height > FrameGraphics.getMaxFrameSize().height) { 1195 y = bounds.y - _tooltipItem.getPolygon().getBounds().height;1195 y = bounds.y + bounds.height / 2 - _tooltipItem.getPolygon().getBounds().height; 1196 1196 } 1197 1197 _tooltipItem.setPosition(x, y);
Note:
See TracChangeset
for help on using the changeset viewer.