Merge pull request #131 from Feasul/patch-1

Use innerWidth/Height instead of outerWidth/Height to determine the width/height of container.
This commit is contained in:
Hyunje Alex Jun 2014-04-02 00:23:21 +09:00
commit b26933e6a5

View File

@ -152,8 +152,8 @@
}; };
var updateBarSizeAndPosition = function () { var updateBarSizeAndPosition = function () {
containerWidth = settings.includePadding ? $this.outerWidth() : $this.width(); containerWidth = settings.includePadding ? $this.innerWidth() : $this.width();
containerHeight = settings.includePadding ? $this.outerHeight() : $this.height(); containerHeight = settings.includePadding ? $this.innerHeight() : $this.height();
contentWidth = $this.prop('scrollWidth'); contentWidth = $this.prop('scrollWidth');
contentHeight = $this.prop('scrollHeight'); contentHeight = $this.prop('scrollHeight');