Merge pull request #5345 from deathbeam/fix-bottom-right-snap-corner

Make bottom-right snap corner not account for chatbox
This commit is contained in:
Tomas Slusny
2018-09-06 21:42:18 +02:00
committed by GitHub

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;