react-custom-scrollbars-2
react-custom-scrollbars-2 copied to clipboard
[Bug] Thumbs re-render on height changes
Hello! I found the following problem. When element height is updated with CSS (see example below), thumbs are not re-rendered until scroll changes.
I think it would be nice if the code included a check if the container's dimensions have changed.
Example code that changes container using css:
.content-container {
display: none;
}
.hidden-checkbox {
display: none;
}
label {
/*some label styles*/
}
.hidden-checkbox:checked+label+.content-container {
display: block;
/*some content container styles*/
}