When combined with an accordion plugin or anything that sets the scrollpane to display:none, the scroller gets initialized to height:0, so you don't see anything. Workaround is to wrap the jScrollPane with show and hide like this:
$('#myDiv').show().jScrollPane().hide();Another way I found is to add it to the click handler for the accordion tab, like so:
$('a.myTab').click(function() {(discussion of the issue and workaround here)
$('#myScrollWrap').jScrollPane();
});
No comments:
Post a Comment