I am using the tinyScrollbar Jquery plugin http://baijs.nl/tinyscrollbar/ on a div which is on page load has display:none so i have to use the update method when it is made visible (as the documentation says) but the update method is not working.. here is the code:
$("#list-scrollbar").tinyscrollbar();
$(".playlist-drop-btn").click(function(){
$(".audio .drop").slideToggle(200);
$(".playlist-drop-btn").toggleClass("up");
$("#list-scrollbar").update();
});
note: when I make the div on page load display:block it works correctly.