Make bottom-right snap corner not account for chatbox

Make bottom-right snap corner not account for chatbox being opened or
not.

Closes #5344

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-09-06 20:32:03 +02:00
parent b5b25aa6ca
commit 93d2ac8531

View File

@@ -456,16 +456,16 @@ public class OverlayRenderer extends MouseListener implements KeyListener
topLeftPoint.x, topLeftPoint.x,
viewportOffset + viewportBounds.height - BORDER); viewportOffset + viewportBounds.height - BORDER);
final Point bottomRightPoint = new Point(
topRightPoint.x,
bottomLeftPoint.y);
// Check to see if chat box is minimized // Check to see if chat box is minimized
if (isResizeable && chatboxHidden) if (isResizeable && chatboxHidden)
{ {
bottomLeftPoint.y += chatboxBounds.height; bottomLeftPoint.y += chatboxBounds.height;
} }
final Point bottomRightPoint = new Point(
topRightPoint.x,
bottomLeftPoint.y);
final Point rightChatboxPoint = isResizeable ? new Point( final Point rightChatboxPoint = isResizeable ? new Point(
viewportOffset + chatboxBounds.width - BORDER, viewportOffset + chatboxBounds.width - BORDER,
bottomLeftPoint.y) : bottomRightPoint; bottomLeftPoint.y) : bottomRightPoint;