tooltips: hug edge of screen instead of jumping

This is more noticeable for larger tooltips, but changing this feels more natural in general.
This commit is contained in:
Jeremy Plsek
2018-04-08 14:14:17 -04:00
parent df0e7c100a
commit 43f0b0c7f2

View File

@@ -90,7 +90,7 @@ public class TooltipOverlay extends Overlay
if (boundsX > clientX)
{
graphics.translate(-bounds.width, 0);
graphics.translate(-bounds.width + clientCanvasBounds.width - bounds.x, 0);
}
}