Search code examples
jqueryjscrollpanecufon

jScrollPane and Cufon together. Can someone make it work?


I used cufon inside of my scrollpanel elements as you can see in http://www.timersys.com/demos/flatbrook/grass-fed-beef/

Problem is that the bottom of divs are being chop off.

I searched on JScrollpane google groups but there is no solution available. When cufon is there JScrollpane calculates wrong the height.

I already tried to exceute cufon before and after jscrollpane. Also triend to exceute jscrollpane with cufon callback option. But always i get same result.

Anyone around with a solution that can help?

Thanks to all


Solution

  • Have you tried to add any bottom padding to the div containing the jScrollPane?

    EDIT: Alright, the above answer is a workaround, but after having gone over your problem: http://jsfiddle.net/jennyfofenny/zM4hS/, I believe your answer is to add a Cufon.now() call between your Cufon.replace line and your .jScrollPane() line. This should solve your problem in all scenarios that I've tested for.