Simplebar: Elements inside simplebar can't have height: 100%

Created on 24 Jul 2018  路  3Comments  路  Source: Grsmto/simplebar

Hi, currently it's not possible to set height: 100% on a element. It simply won't grow to the desired size.
If I compare it with a native-scroll-container its working though.

Here's a fiddle: http://jsfiddle.net/gvne6xk5/2/
The red container is the simplebar-scroll container and the blue one is the native-scroll container.
Notice the size difference of the h2 elements.

enhancement

Most helpful comment

That's very unfortunate...
I've tested other scrollbar plugins and the in the caveats section mentioned OverlayScrollbars plugin does support this behavior: http://jsfiddle.net/gvne6xk5/7/

Maybe you can ask the maintainer how he's doing it, because I think this is a quite important thing.

All 3 comments

Thanks for your report.
I think you are right, there is no way of doing this in pure css. That seems like a limitation of how the plugin works. I don't see any solution to that in pure css :/

I will improve the caveats section with this.

That's very unfortunate...
I've tested other scrollbar plugins and the in the caveats section mentioned OverlayScrollbars plugin does support this behavior: http://jsfiddle.net/gvne6xk5/7/

Maybe you can ask the maintainer how he's doing it, because I think this is a quite important thing.

This is fixed in latest beta version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

adjourn picture adjourn  路  6Comments

JoshClose picture JoshClose  路  7Comments

barnu5 picture barnu5  路  5Comments

Blackleones picture Blackleones  路  3Comments