mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
when reloading, viewerSize is being set to 0, 0. check that x and y have a non-zero value, otherwise results in IE8 error when rounding NaN
This commit is contained in:
parent
a5394c62f7
commit
cc18a85591
@ -282,7 +282,7 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /*
|
||||
bottomright;
|
||||
|
||||
viewerSize = $.getElementSize( this.viewer.element );
|
||||
if ( this._resizeWithViewer && !viewerSize.equals( this.oldViewerSize ) ) {
|
||||
if ( this._resizeWithViewer && viewerSize.x && viewerSize.y && !viewerSize.equals( this.oldViewerSize ) ) {
|
||||
this.oldViewerSize = viewerSize;
|
||||
|
||||
if ( this.maintainSizeRatio || !this.elementArea) {
|
||||
|
Loading…
Reference in New Issue
Block a user