1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    15
    Vote Rating
    0
    bill_chuang is on a distinguished road

      0  

    Default Unanswered: how the scrollbar of panel move to the bottom when the content overflow

    Unanswered: how the scrollbar of panel move to the bottom when the content overflow


    I want to show some text in the panel,and I set the panel autoScroll,when the contents are too many so that the panel overflows,and then the scrollbar shows,but the problem is that the scrollbar always stops at the top,like this
    QQ截图20120505225737.jpg
    so I want to ask how to set the position of scrollbar at the bottom when the content overflows.
    Anybody can help me?
    3ks

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Answers
    21
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    A few suggestions: either you play with the panel.body.dom.scrollconfigs, or you can try to use one of the methods provided by the same element:
    Ext.get("id-of-element-to-be visible").scrollIntoView(panel.body.dom); , or panel.body.scroll()

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    15
    Vote Rating
    0
    bill_chuang is on a distinguished road

      0  

    Default


    3KS for your suggestion.
    your suggestions is usefull.But when I use panel.body.scroll() method,the scroll effect is realized.But the firebug prints the error
    "direction is undefined:

    direction = direction.substr(0, 1);"
    what the problem is?

  4. #4
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Answers
    21
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    you need to provide the required arguments to that method, check API doc.

Thread Participants: 1

Tags for this Thread