Remove includePadding option.

It's supported by default.
This commit is contained in:
Hyunje Alex Jun
2015-02-11 15:53:41 +00:00
parent 3f002c49a1
commit ff5ca3d804
3 changed files with 2 additions and 7 deletions
-1
View File
@@ -15,5 +15,4 @@ module.exports = {
suppressScrollY: false,
scrollXMarginOffset: 0,
scrollYMarginOffset: 0,
includePadding: false
};
+2 -2
View File
@@ -159,8 +159,8 @@ module.exports = function (element, settingOrCommand) {
cls.remove(element, 'ps-active-x');
cls.remove(element, 'ps-active-y');
containerWidth = settings.includePadding ? element.clientWidth : h.toInt(d.css(element, 'width'));
containerHeight = settings.includePadding ? element.clientHeight : h.toInt(d.css(element, 'height'));
containerWidth = element.clientWidth;
containerHeight = element.clientHeight;
contentWidth = element.scrollWidth;
contentHeight = element.scrollHeight;