vitch / jScrollPane

Pretty, customisable, cross browser replacement scrollbars

Home Page:http://jscrollpane.kelvinluck.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jspVerticalBar doesn't show for div childs

pederjohnsen opened this issue · comments

I don't know why but the scrollbar won't show for some reason on a div inside other divs.
Check it here: http://martonilles.com/newsite/bio.html

The top text and the bottom text are just the same besides the size and that the top one is within other divs, while the bottom one is just a single div. However only the bottom one shows the scroll! Any idea why this is happening?

  • Peder.

It is not because the div is inside other divs. There may be some conflict in the CSS... If you disable jScrollPane does the top div correctly show the browser's default scrollbars? I'd recommend slowly simplifying the page until you see what is causing the problem. If it is a bug then please provide a minimal test case (on jsfiddle.net) and I'll try to fix it.

Thanks!

Ok, seems the problem was that the elements starts with display: none; then are animated to view.. As I was initiating the scroller script before the content was displayed.. However, after changing it to activate the scroller after the animation for some reason jspContainer only gets given 1px height.. Any ideas what could cause this? :-/.

Nevermind, It is most likely caused by the slideDown animation on the content div.. I'm pretty sure I've solved this! thanks.