Bottom content cutoff using overflow: auto; and jscrollpane

☆樱花仙子☆ 提交于 2019-12-01 09:40:18

jScrollPane has some options for solving this:


autoReinitialise:true

(adds processing overhead.. use only if necessary)

http://jscrollpane.kelvinluck.com/auto_reinitialise.html


reinitialise()

(manually update pane size)

http://jscrollpane.kelvinluck.com/dynamic_content.html


Welcome to stackoverflow!

This looks like a simple problem of timing. You are/something is altering the content of the scroll pane after the jsScrollPane() function has run.

First try simply including it in a $(document).ready() function. If that doesn't work go through your functions and check to see if any javascript is altering the size of that container and add jsScrollPane() as a callback.

Pretty sure the first will work for you though :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!