-
-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent double scrollbars for flexbox parents #488
base: master
Are you sure you want to change the base?
Conversation
Hi! Could you hold on with this quick fix until the next major release? Also applying Quick note but I think there is something wrong with your "broken" example: if you remove simplebar from that example, it will do exactly the same. It's normal CSS behaviour, the child of the flex container is overflowing its parent, so there isn't any scrollbar unless you define Thanks! |
98721b9
to
e8af63a
Compare
Previously attempting to use SimpleBar in a parent with "display: flex" without specifying a height or "overflow: hidden" on the host element, resulted in two scroll bars being displayed SimpleBar and the native one. Fixes Grsmto#473.
Hi, thanks for the detailed reply! I couldn't get
You are correct that if you remove simplebar from the example the behaviour doesn't change. Note however that Simplebar does not follow normal CSS behaviour: when you specify a height on the host element it makes the content scrollable, even if you do not specify I updated this PR to just be a one-line CSS addition: setting |
@Grsmto I may not understand something but in order for flexbox styles to work you need to add
className with overflow: auto; to the SimpleBar React Component and apply overflow: hidden; to parent element)
|
Fixes #473.