jScrollPane - frequently asked questions

This page contains some frequently asked questions about jScrollPane and their answers.

Why does my scrollbar only appear intermittantly in Webkit based browsers?

In Webkit based browsers (e.g. Safari, Chrome, iOS and Android) there is a known issue where you must include your CSS before your JS. More info.

Why does my scrollbar disappear when I reinitialise my jScrollPane after updating the content with ajax?

jScrollPane version 2 places the scrollbar and associated controls inside the element you apply jScrollPane to. This means that any positional styling on the containing element continues to work correctly and also allows us to calculate size changes correctly when the parent element's size changes.

Because of this you can't simply replace the contents of jScrollPane. Instead you need to use the getContentPane API method as shown in the ajax and dynamic content examples.