fixed wrong getHomeBounds

This commit is contained in:
jonasengelmann 2022-03-30 22:37:14 +02:00
parent 1cbc2d96c1
commit 8746e8b243

View File

@ -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;