OverlayRenderer: Update bounds before render
This commit is contained in:
@@ -490,6 +490,7 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
graphics.translate(point.x, point.y);
|
graphics.translate(point.x, point.y);
|
||||||
|
overlay.getBounds().setLocation(point);
|
||||||
|
|
||||||
final Dimension overlayDimension;
|
final Dimension overlayDimension;
|
||||||
try
|
try
|
||||||
@@ -503,7 +504,7 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Dimension dimension = MoreObjects.firstNonNull(overlayDimension, new Dimension());
|
final Dimension dimension = MoreObjects.firstNonNull(overlayDimension, new Dimension());
|
||||||
overlay.setBounds(new Rectangle(point, dimension));
|
overlay.getBounds().setSize(dimension);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean shouldInvalidateBounds()
|
private boolean shouldInvalidateBounds()
|
||||||
|
|||||||
Reference in New Issue
Block a user