Issue replacing default scroll bar using jQuery plugin


Staff member
I would like to replace the default scrollbar of my site (<a href="" rel="noreferrer">THIS</a> page in particular) using a jQuery plugin called <a href="" rel="noreferrer">TinyScrollbar</a>. However, for some reason I'm getting the following error on the page:

jquery.tinyscrollbar.min.js:1Uncaught TypeError: Cannot read property 'offsetHeight' of undefined

You can see this error by inspecting element in Chrome.

Might anyone have any ideas why this error is occurring? The code I am using to initialize the plugin can be seen below: