From c94333a8ce63df2e2c9f2ac44e96a758f1acd155 Mon Sep 17 00:00:00 2001 From: Gittenburg Date: Fri, 26 Jun 2020 13:18:24 +0200 Subject: [PATCH] Prevent double scrollbars for flexbox parents 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. --- packages/simplebar/src/simplebar.css | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/simplebar/src/simplebar.css b/packages/simplebar/src/simplebar.css index 5edc689f..9f820003 100644 --- a/packages/simplebar/src/simplebar.css +++ b/packages/simplebar/src/simplebar.css @@ -5,6 +5,7 @@ justify-content: flex-start; align-content: flex-start; align-items: flex-start; + max-height: 100%; } .simplebar-wrapper {