Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    6
    Vote Rating
    0
    adjohnson916 is on a distinguished road

      0  

    Default Sencha Touch 2.1 List scroll behavior

    Sencha Touch 2.1 List scroll behavior


    Hi,

    Any reason I can't seem to get the "scrollToTopOnRefresh" config to do anything with the new List components in Sencha Touch 2.1? Are there any test cases demonstrating this working in 2.1?

    My code was working in 2.0.x. Since upgrading, I tried manually calling list.getScrollable().getScroller().scrollTo({x: 0, y: 0}) when I call load() on the store after resetting its options. This workaround works in development via the microloader, but appears to have no effect in the built application (built via Sencha Cmd 3). Weirdness!

    What is the expected behavior of these properties/methods with the new ST 2.1 List component?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    814
    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


    This is working for me:

    Code:
    Ext.Viewport.add({
        xtype                : 'list',
        itemTpl              : '{test}',
        scrollToTopOnRefresh : false,
        store                : {
            autoLoad : true,
            fields   : [ 'test' ],
            proxy    : {
                type : 'ajax',
                url  : 'data/json.json'
            }
        },
        items                 : [
            {
                xtype  : 'toolbar',
                docked : 'bottom',
                items  : [
                    {
                        text    : 'Refresh',
                        handler : function(btn) {
                            var list  = btn.up('list'),
                                store = list.getStore();
    
                            store.load();
                        }
                    }
                ]
            }
        ]
    });
    This will prevent scrolling to the top. If I remove the scrollToTopOnRefresh config and let it default to true, it will scroll to the top when I tap on the Refresh button.

    This using 2.1.0
    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

Tags for this Thread