Correctly reset widget.originalY in WidgetOverlay (#6004)

This commit is contained in:
Hydrox6
2018-10-14 02:24:41 +01:00
committed by Tomas Slusny
parent 6236ba0de2
commit 656ae729d5

View File

@@ -118,7 +118,7 @@ public class WidgetOverlay extends Overlay
y = Math.min((int)parent.getMaxY() - bounds.height, y);
bounds.setLocation(x, y);
widget.setOriginalX(0);
widget.setRelativeX(0);
widget.setOriginalY(0);
widget.setRelativeX(bounds.x - parent.x);
widget.setRelativeY(bounds.y - parent.y);
return new Dimension(widget.getWidth(), widget.getHeight());