I am trying to style my jScrollPane
but I find that my scroll bar is extending out of the container

How can I fix it? Code can be seen in http://jsfiddle.net/Mfest/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My answer is now redundant, see the below answer.
I don’t know the “proper jScrollPane method”, but this does work in modern browsers.
The problem is that the
paddingandborderon.jspTrackis adding up to make the height of the scrollbar306px, instead of300px.So, you can use the
box-sizingproperty on.jspTrack:See: http://jsfiddle.net/Mfest/2/
I would personally not be satisfied with this answer, because it seems a kludgy way to fix it.