Bottom content cutoff using overflow: auto; and jscrollpane

前端 未结 2 811
滥情空心
滥情空心 2021-01-15 06:11

Because of a rotated content area, textoverflow, and a -webkit issue about the scroll bar not showing properly I\'ve decided to use jscrollpane. For initial issue: Origina

相关标签:
2条回答
  • 2021-01-15 06:37

    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 :)

    0 讨论(0)
  • 2021-01-15 06:41

    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


    0 讨论(0)
提交回复
热议问题