diff --git a/.gitignore b/.gitignore index 3ebd08b8..aaaabf8c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build/ sftp-config.json coverage/ temp/ +.idea \ No newline at end of file diff --git a/src/navigator.js b/src/navigator.js index 23809e9d..9f3923df 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -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) { diff --git a/src/viewer.js b/src/viewer.js index a75c4ab1..f36fe020 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -836,7 +836,6 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, return this; }, - /** * @function * @return {Boolean}