Fixed: Remove trailing spaces

This commit is contained in:
Richard Benjamin Allen 2024-06-18 11:22:23 +01:00
parent 79eecdcc76
commit 263dc85fbd

View File

@ -269,7 +269,6 @@
else { else {
rotate = positionAndSize.rotate; rotate = positionAndSize.rotate;
} }
// call the onDraw callback if it exists to allow one to overwrite // call the onDraw callback if it exists to allow one to overwrite
// the drawing/positioning/sizing of the overlay // the drawing/positioning/sizing of the overlay
if (this.onDraw) { if (this.onDraw) {
@ -320,11 +319,9 @@
var rect = new $.Rect(position.x, position.y, size.x, size.y); var rect = new $.Rect(position.x, position.y, size.x, size.y);
var boundingBox = this._getBoundingBox(rect, viewport.getRotation(true)); var boundingBox = this._getBoundingBox(rect, viewport.getRotation(true));
position = boundingBox.getTopLeft(); position = boundingBox.getTopLeft();
if (viewport.flipped){ if (viewport.flipped){
position.x = (viewport.getContainerSize().x - position.x); position.x = (viewport.getContainerSize().x - position.x);
} }
size = boundingBox.getSize(); size = boundingBox.getSize();
} else { } else {
rotate = viewport.getRotation(true); rotate = viewport.getRotation(true);