Hide scrollbar rails when they're suppressed.

They were displayed even though suppresed. In this patch,
the scrollbar rails won't be displayed unless they're needed.
This commit is contained in:
Hyunje Alex Jun 2014-09-28 01:24:09 +01:00
parent 937463cf75
commit c1b40168f6

View File

@ -243,9 +243,13 @@
updateScrollbarCss();
// Show scrollbars again after updated
$scrollbarXRail.show();
$scrollbarYRail.show();
// Show scrollbars if needed after updated
if (!settings.suppressScrollX) {
$scrollbarXRail.show();
}
if (!settings.suppressScrollY) {
$scrollbarYRail.show();
}
};
var bindMouseScrollXHandler = function () {