diff --git a/src/viewport.js b/src/viewport.js index e4945f69..88b99fd2 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -577,6 +577,7 @@ $.Viewport.prototype = { */ resize: function( newContainerSize, maintain ) { //Set current size to 1 if 0 (hidden div) + var currentsize = this.containerSize.x === 0 ? 1 : this.containerSize.x; var oldBounds = this.getBounds(), newBounds = oldBounds,