1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    larryan is on a distinguished road

      0  

    Default Unanswered: autoScroll bar

    Unanswered: autoScroll bar


    Hi,
    I have a form setting autoScroll to true. I add multi grids into the form dynamically. When screen shows up and I click on the form ( actually, on any line in the grid that is on the view) for the first time (not second time), the form will scroll down to a certain distance based on how big the content in the form. I don't know why the form scroll down automatically. It happened only when i first time click on it.
    Then I used a container wrapped the form and moved autoScroll: true to the container, but the same thing happen.
    How can I stop this scrolling? any idea I will appreciate.
    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It's not really Ext JS that is scrolling it, autoScroll just sets some CSS rules. What's likely happening is the browser is relaying things out because of some DOM changes forced it to. This was an bug in 4.1.1 but I think it was fixed in 4.1.3.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1