Add 'includePadding' option (use container outerWidth/outerHeight instead of width/head)
This commit is contained in:
parent
ee7d3bf62c
commit
9420d1b6a9
@ -25,7 +25,8 @@
|
|||||||
suppressScrollX: false,
|
suppressScrollX: false,
|
||||||
suppressScrollY: false,
|
suppressScrollY: false,
|
||||||
scrollXMarginOffset: 0,
|
scrollXMarginOffset: 0,
|
||||||
scrollYMarginOffset: 0
|
scrollYMarginOffset: 0,
|
||||||
|
includePadding: false
|
||||||
};
|
};
|
||||||
|
|
||||||
var getEventClassName = (function () {
|
var getEventClassName = (function () {
|
||||||
@ -149,8 +150,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var updateBarSizeAndPosition = function () {
|
var updateBarSizeAndPosition = function () {
|
||||||
containerWidth = $this.width();
|
containerWidth = settings.includePadding ? $this.outerWidth() : $this.width();
|
||||||
containerHeight = $this.height();
|
containerHeight = settings.includePadding ? $this.outerHeight() : $this.height();
|
||||||
contentWidth = $this.prop('scrollWidth');
|
contentWidth = $this.prop('scrollWidth');
|
||||||
contentHeight = $this.prop('scrollHeight');
|
contentHeight = $this.prop('scrollHeight');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user