Use client real dimensions for canvasTopRight

Closes #7374

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-01-15 23:19:50 +01:00
parent 050160686b
commit bf522eaba0

View File

@@ -482,7 +482,7 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
bottomLeftPoint.y) : bottomRightPoint;
final Point canvasTopRightPoint = isResizeable ? new Point(
client.getCanvas().getWidth(),
(int)client.getRealDimensions().getWidth(),
0) : topRightPoint;
return new OverlayBounds(