Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

jspVerticalBar class' paddings/margins not being taken into account in verticalTrackHeight #91

wants to merge 2 commits into


None yet
2 participants

I came across this "issue" when designing a scrollbar, I've attached a screenshot to show my problem, I've made the background red so it's easily noticeable:


As you can see ".jspVerticalBar" has a margin on it which is displayed by the white gap at the top of the scroll bar, this is fine however the size of the vertical bar is relevant to the space it has, NOT including any paddings/margin. Because of this the bottom gets cut off.

This change subtracts the outerHeight (which includes padding/margins) from the available container height, then minuses the remaining height from paneHeight when setting verticalTrackHeight. I tried many CSS tricks with no success before applying a patch.

rickihastings added some commits Aug 22, 2011

Turns out comparing the outerHeight with the container.height() doesn…
…'t always generate the right amount (as I found through a bug in something I'm developing) so I've made further changes.

@N0vaLyfe You are missing the border part as well.

for border handling, this is enough: https://gist.github.com/1555032

the first line if (isScrollableV) { is found on line 439 of version 2.0.0beta11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment