react-custom-scrollbars
react-custom-scrollbars copied to clipboard
How to always show scrollbar?
Went through the documentation but could not find the option for always showing a scrollbar.
Help!
I just lost a day to this but turned out to be system settings. Turns out chrome respects system scroll bar preferences. If you set them to always you should see the scroll bars. Settings are in general on mac os. No idea what happens on other OS's
This lib is rendering 100*100 div with overflow: scroll
to count scroll width. But in OSX overflow: scroll
will not show scroll, if you doesn't choose setting 'always' in system preference 'show scrollbars'. You can try my fork and add some default width by css, but you will face issues with padding, if scroll not always shown.
Just download this package
https://www.npmjs.com/package/react-custom-scrollbars-fork
and inside your styles write fix like
.react-custom-scrollbars-fix::-webkit-scrollbar {
width: 7px;
}
I will think of a solution for this
Any resolution to this issue?
Bump; also having the same issue: OSX is hiding the scrollbars on Safari and Chrome.