diff --git a/src/swipeview.js b/src/swipeview.js index 56b0a00..2f1d4a9 100644 --- a/src/swipeview.js +++ b/src/swipeview.js @@ -162,8 +162,8 @@ var SwipeView = (function (window, document) { }, refreshSize: function () { - this.wrapperWidth = this.wrapper.clientWidth; - this.wrapperHeight = this.wrapper.clientHeight; + this.wrapperWidth = this.options.wrapperWidth || this.wrapper.clientWidth; + this.wrapperHeight = this.options.wrapperHeight || this.wrapper.clientHeight; this.pageWidth = this.wrapperWidth; this.maxX = -this.options.numberOfPages * this.pageWidth + this.wrapperWidth; this.snapThreshold = this.options.snapThreshold === null ?