From 1849e64122cc9e77eb27c6e907b44b638c1bca4b Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Wed, 5 Nov 2014 18:51:52 +0000 Subject: [PATCH] Remove remaining inline display style. It caused regression bugs. --- src/perfect-scrollbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 4588756..da90c5e 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -163,7 +163,7 @@ } function updateCss() { - var xRailOffset = {width: containerWidth, display: scrollbarXActive ? "inherit" : "none"}; + var xRailOffset = {width: containerWidth}; if (isRtl) { xRailOffset.left = $this.scrollLeft() + containerWidth - contentWidth; } else { @@ -176,7 +176,7 @@ } $scrollbarXRail.css(xRailOffset); - var railYOffset = {top: $this.scrollTop(), height: containerHeight, display: scrollbarYActive ? "inherit" : "none"}; + var railYOffset = {top: $this.scrollTop(), height: containerHeight}; if (isScrollbarYUsingRight) { if (isRtl) {