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:
parent
937463cf75
commit
c1b40168f6
@ -243,9 +243,13 @@
|
|||||||
|
|
||||||
updateScrollbarCss();
|
updateScrollbarCss();
|
||||||
|
|
||||||
// Show scrollbars again after updated
|
// Show scrollbars if needed after updated
|
||||||
|
if (!settings.suppressScrollX) {
|
||||||
$scrollbarXRail.show();
|
$scrollbarXRail.show();
|
||||||
|
}
|
||||||
|
if (!settings.suppressScrollY) {
|
||||||
$scrollbarYRail.show();
|
$scrollbarYRail.show();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var bindMouseScrollXHandler = function () {
|
var bindMouseScrollXHandler = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user