Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    15
    Vote Rating
    0
      0  

    Default 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
    Cluj, Romania
    Posts
    720
    Answers
    23
    Vote Rating
    51
      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()
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    15
    Vote Rating
    0
      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
    Cluj, Romania
    Posts
    720
    Answers
    23
    Vote Rating
    51
      0  

    Default

    you need to provide the required arguments to that method, check API doc.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •