diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 227ef94..c5144de 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -112,6 +112,8 @@ var isScrollbarXUsingBottom = scrollbarXBottom === scrollbarXBottom; // !isNaN var scrollbarXTop = isScrollbarXUsingBottom ? null : getInt($scrollbarXRail.css('top')); var railBorderXWidth = getInt($scrollbarXRail.css('borderLeftWidth')) + getInt($scrollbarXRail.css('borderRightWidth')); + var railXMarginWidth = getInt($scrollbarXRail.css('marginLeft')) + getInt($scrollbarXRail.css('marginRight')); + var railXWidth; var $scrollbarYRail = $("