'Prefect Scrollbar

I’ve recently implemented prefect scrollbar. I was running a process where I added a class after the scroller is initialized to show the scrollbar. This no longer works as the scroll bars do not have a height attribute set until the mouse wheel is clicked or there is a hover over event.

Anyone running into the same issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source