react-custom-scrollbars-2 icon indicating copy to clipboard operation
react-custom-scrollbars-2 copied to clipboard

[Bug] Thumbs re-render on height changes

Open RomanChumakov opened this issue 4 years ago • 0 comments

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*/
}

RomanChumakov avatar Jul 07 '21 12:07 RomanChumakov