From 8746e8b243e703c7ca1bbf8c07fe58ea3bfbecce Mon Sep 17 00:00:00 2001 From: jonasengelmann <40031476+jonasengelmann@users.noreply.github.com> Date: Wed, 30 Mar 2022 22:37:14 +0200 Subject: [PATCH] fixed wrong getHomeBounds --- src/viewport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.js b/src/viewport.js index 3a6e339a..118f8184 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -191,7 +191,7 @@ $.Viewport.prototype = { this._contentSizeNoRotate = this._contentBoundsNoRotate.getSize().times( contentFactor); - this._contentBounds = bounds.rotate(this.getRotation(true)).getBoundingBox(); + this._contentBounds = bounds.rotate(this.getRotation()).getBoundingBox(); this._contentSize = this._contentBounds.getSize().times(contentFactor); this._contentAspectRatio = this._contentSize.x / this._contentSize.y;