Skip to content

Commit

Permalink
Prevent double scrollbars for flexbox parents
Browse files Browse the repository at this point in the history
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 #473.
  • Loading branch information
Gittenburg committed Jul 6, 2020
1 parent 3f66285 commit c94333a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/simplebar/src/simplebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
justify-content: flex-start;
align-content: flex-start;
align-items: flex-start;
max-height: 100%;
}

.simplebar-wrapper {
Expand Down

0 comments on commit c94333a

Please sign in to comment.