I am using tinyscrllbar() plugin and it works fine out of fancy box. when I put the div inside fancybox only the track image is shown and the rest of the scrollbar does not show and apparently it does not function at all. Is there any solution to make tinyscrollbar() work inside fancybox?
1 Answers
2
votes
try initializing the tinyscrollbar() using the fancybox's. afterShow callback.
why? because when you initialize tinyscrollbar at page load, fancybox doesn't exist in the DOM (tinyscrollbar will be init for the existing elements in the document only).
Once you have added fancybox to the DOM, tinyscrollbar re-initialization is required to work inside fancybox.
tinyscrllbar()using the fancybox's.afterShowcallback. - JFK