docs/js/plugins.js
function getScrollBarWidth() {
		var width = 0, div = createElement("div", { class: "scrollbar-measure" });
		
		style(div, {
			width: 100,
			height: 100,
			overflow: "scroll",
			position: "absolute",
			top: -9999
		});

		document.body.appendChild(div);
		width = div.offsetWidth - div.clientWidth;
		document.body.removeChild(div);

		return width;
	}
function getScrollBarWidth() {
		var width = 0, div = createElement("div", { class: "scrollbar-measure" });
		
		style(div, {
			width: 100,
			height: 100,
			overflow: "scroll",
			position: "absolute",
			top: -9999
		});

		document.body.appendChild(div);
		width = div.offsetWidth - div.clientWidth;
		document.body.removeChild(div);

		return width;
	}
function getScrollBarWidth ( ) { var width = 0 , div = createElement ( "div" , { class : "scrollbar-measure" } ) ; style ( div , { width : 100 , height : 100 , overflow : "scroll" , position : "absolute" , top : - 9999 } ) ; document . body . appendChild ( div ) ; width = div . offsetWidth - div . clientWidth ; document . body . removeChild ( div ) ; return width ; }
Get native scrollbar width
@return {Number} Scrollbar width
Get native scrollbar width