Skip to content
Discussion options

You must be logged in to vote

Hey @Ding-Fan,

It doesn't seem to be an issue with the ScrollArea itself but rather a CSS one.
You can see here a barebones example not using the component but just some div and the same styles:

https://codesandbox.io/s/scrollarea-maxheight-barebones-xursg4?file=/src/App.js

You can see the same issue with native scroll. Basically the issue is that the viewport div with height: 100% within the maxHeight one expand further than it should.

You can resolve the issue using flexbox (see the commented properties to uncomment).

Hope this helps!

✌️

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ding-Fan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants