I'm currently using mcustomscrollbar which is a jquery free plugin. Is there a possible way that this plug in should always show the scrollbar?
Asked
Active
Viewed 4,361 times
2 Answers
2
You might of meant that you want the scroll bar to always be visible, even when the scrollable area's content is less than the viewport part of the container. I reached this question when searching for an answer to this situation.
The answer is to add alwaysShowScrollbar
to the configuration object of mCustomScrollbar.
From the documentation:
alwaysShowScrollbar: integer - Always keep scrollbar(s) visible, even when there’s nothing to scroll.
alwaysShowScrollbar: 0 – disable (default) alwaysShowScrollbar: 1 – keep dragger rail visible alwaysShowScrollbar: 2 – keep all scrollbar components (dragger, rail, buttons etc.) visible

Yuval A.
- 5,849
- 11
- 51
- 63
0
The scroll bar should be visible by default unless you're using autoHideScrollbar: true configuration
Besides that, you can also try using this css:
.mCustomScrollBox>.mCSB_scrollTools {
opacity: 1 !important;
}

Felix
- 37,892
- 8
- 43
- 55
-
when an element don't have a scroll yet scroll bar is not visible but when i re-size it until the smallest i could. it shows the scroll bar i want to have the element to have a scroll bar even though it doesn't reach its limit to have a scroll bar. is there a possible way? – bRaNdOn Jan 23 '14 at 03:43