Results 1 to 5 of 5

Thread: [FIXED-212] List not reducing scroll position after reload

    You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jun 2010

    Default [FIXED-212] List not reducing scroll position after reload

    In the code example below, scroll down in the list, then press the button. The list appears empty, but if you scroll back up you'll see the new element (and subsequently you will not be able to scroll down again). Expected behavior would be for the container to scroll so it's lower limit matches the bottom of the screen (if it still overflows). My workaround is to scroll manually after reloading the data, let me know if there's another workaround for now.

    Ext.setup({ onReady: function () {
        var data = [];
        for (var x = 0; x < 100; x++) data[data.length] = { html: x };
        new Ext.List({
            fullscreen: true,
            store: new{ fields: ['html'] }),
            tpl: new Ext.XTemplate('<tpl for="."><div class="list-item">{html}</div></tpl>'),
            itemSelector: '.list-item',
            dockedItems: [{ dock: 'top', xtype: 'button', text: 'shorten list',
                handler: function () {
                    this.ownerCt.getStore().loadData([{ html: 'invisible'}]);

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Redwood City, California


    Thanks for the report.

  3. #3
    Sencha User aconran's Avatar
    Join Date
    Mar 2007


    Fixed in 0.96.
    Aaron Conran

  4. #4
    Sencha User
    Join Date
    Mar 2011

    Default does't work in v1.1


    I have same problem. It does't work in sencha 1.1

  5. #5


        refresh: function() {
            if (!this.rendered) {
            this.fireEvent('beforerefresh', this);
            var el = this.getTargetEl(),
                records =;
            if (records.length < 1) {
                if (!this.deferEmptyText || this.hasSkippedEmptyText) {
            } else {
                this.tpl.overwrite(el, this.collectData(records, 0));
                this.all.fill(Ext.query(this.itemSelector, el.dom));
            this.hasSkippedEmptyText = true;
            if (this.scroller) {
                this.scroller.scrollTo({x:0, y:0});
            this.fireEvent('refresh', this);

Similar Threads

  1. [FIXED] List scroll issue
    By kostik83 in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 19 Jul 2010, 9:59 AM
  2. Saving scroll position after store reload (difference in 3.0 and 3.0.3)
    By marcink86 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 17 Nov 2009, 1:59 AM
  3. [OPEN] [FIXED-212][3.0.0] Text not localized
    By hanne in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 1 Sep 2009, 7:44 AM
  4. Scroll scroll scroooolllll at a fixed position !!!
    By j-mi-jim in forum Community Discussion
    Replies: 0
    Last Post: 12 Feb 2009, 6:49 AM
  5. Setting the scroll state of a form to a fixed position on load
    By kevinmike in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 10 Feb 2009, 12:23 PM

Posting Permissions

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