I've got a Webkit specific problem when using the horizontal scrollbar in combination with an anchor tag. An example of the problem is shown here: http://www.splinterarchitecten.nl/wonen-combinatie/
Please take the following steps:
The CSS is included before the javascript. I've tried 'autoReinitialise: true', which made no difference. I now use the following code:
if ( window.location.hash ) {
api.scrollToElement( $j( window.location.hash ), 1 );
}
which seems to help some (at least the scrollbar is shown in its proper place initially), but the problem with the dragging is still there. Any help would be greatly appreciated.
Kind regards,
Vivienne
Workaround
I've been playing with your scrollbar, and the only thing I got is that the positioning of the scrollbar weirdly seems to depends on the scroll of your jspPane
. Cannot figure why.
Anyway, if you can control the way jsscrollpane
initialize the pane, it seems that if you move the jspHorizontalBar
to make it a direct child of tiascrollpanehor
like that :
<div id="tiascrollpanehor" class="scroll-pane jspScrollable" style="overflow: hidden; padding: 0px; width: 525px; " tabindex="0">
<div class="jspHorizontalBar">
<div class="jspContainer" style="width: 525px; height: 439px; ">
....
It positions itself well but is not user controllable. To fix that, add
.jspHorizontalBar{
...
z-index:2;
}
I still can't explain why it's behaving like that, but I hope this will fix that bug for you (as I can't modify CSS and HTML structure before page rendering).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With