I have weird scroll behavior which I do not understand.
For better understanding this video.
I have a page and nothing is bigger then the scoll page, the container around ist min-h-screen with overflow auto but when I put the content smaller, it still makes it scroll due the original height. Does someone had experience something like this before?
3 Replies
Try adding
flex flex-1
to the container you want to scroll to the max of (the container)i already added it, so the max height is not the issue. The issue is that I am able to scroll when the child content is overflow hidden/scroll. Why am I able to scroll the parent container
In the chrome dev tools, check the size of the parent container and see if there is anything weird about it (large margin, padding etc) otherwise can I see the html?