mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
fixed wrong getHomeBounds
This commit is contained in:
parent
1cbc2d96c1
commit
8746e8b243
@ -191,7 +191,7 @@ $.Viewport.prototype = {
|
|||||||
this._contentSizeNoRotate = this._contentBoundsNoRotate.getSize().times(
|
this._contentSizeNoRotate = this._contentBoundsNoRotate.getSize().times(
|
||||||
contentFactor);
|
contentFactor);
|
||||||
|
|
||||||
this._contentBounds = bounds.rotate(this.getRotation(true)).getBoundingBox();
|
this._contentBounds = bounds.rotate(this.getRotation()).getBoundingBox();
|
||||||
this._contentSize = this._contentBounds.getSize().times(contentFactor);
|
this._contentSize = this._contentBounds.getSize().times(contentFactor);
|
||||||
this._contentAspectRatio = this._contentSize.x / this._contentSize.y;
|
this._contentAspectRatio = this._contentSize.x / this._contentSize.y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user