nghiepdev / smooth-scrollbar-react

A wrapper for smooth-scrollbar to React Component.
https://codesandbox.io/s/smooth-scrollbar-react-4pu86
MIT License
39 stars 5 forks source link

Smooth Scrollbar not working because componentWillReceiveProps is renamed #1

Closed chtushar closed 4 years ago

chtushar commented 4 years ago

I tried using this library on one of my projects, but it is not working. I tried recreating the problem in this instance https://codesandbox.io/s/goofy-sid-gnxuq

I think since componentWillReceiveProps is renamed that's why it is not working. Please have a look at above link if there's any problem with my code.

Thanks in advance!

nghiepdev commented 4 years ago

@chtushar You just set the specific height or max-height the container element.

// styles.css
.App {
-min-height: 100vh;
+max-height: 100vh;
 width: 100%;
}
chtushar commented 4 years ago

It's working!!!! Thankyou so much. :)