Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3652 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    West Germany
    Posts
    55
    Vote Rating
    4
    olegtaranenko is on a distinguished road

      0  

    Lightbulb Regression for Pull Refresh Plugin in 2.1 RC2

    Regression for Pull Refresh Plugin in 2.1 RC2


    REQUIRED INFORMATIONExt version tested:
    • Sencha Touch 2.1 RC2
    Browser versions tested against:
    • Chrome Canary 25
    DOCTYPE tested against:
    • html
    Description:
    • If List is empty and 'No Items... ' is displayed Pull Refresh Plugin does not work
    Steps to reproduce the problem:
    • create a List with empty content
    The result that was expected:
    • list has has to be pullable
    The result that occurs instead:
    • Sencha 2.0.1 works like a charm
    Test Case:
    Code:
    change in file examples/pullrefresh/app.js                    extraParams: {
                            q: 'sencha'
                        },
    to ->>>>
    
                        extraParams: {
                            q: 'sencha is pretty bug-free framework'
                        },
    HELPFUL INFORMATIONScreenshot or Video:
    • attached
    See this URL for live test case: http://Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    • custom css (include details)
    Operating System:
    • WinXP Pro

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


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    41
    Vote Rating
    0
    celwell is on a distinguished road

      0  

    Default


    Temporary workaround:

    :
    Code:
        emptyText: ""
        listeners:
          refresh: (c) ->
            if c.getStore().getCount() is 0 and c.getPlugins()[0]?.element?.dom?.childNodes[1]?
              c.getPlugins()[0].element.dom.childNodes[1].style.display = 'block'
        plugins: [
          {
            xclass: 'Ext.plugin.PullRefresh'
            pullTpl: [
                '<div class="x-list-pullrefresh">',
                    '<div class="x-list-pullrefresh-wrap">',
                        '<img src="resources/images/tarsier.png" width="45" height="24" />',
                        '<h3 class="x-list-pullrefresh-message">{message}</h3>',
                        '<div class="x-list-pullrefresh-updated">last updated: <span>{lastUpdated:date("m/d/Y h:iA")}</span></div>',
                    '</div>',
                '</div>',
                "<div class='x-list-emptytext' style='display:none;'>No records.</div>"
            ].join ''
          }
         ]

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Thanks for the report. This has been fixed for the next release.

  5. #5
    Sencha User
    Join Date
    Oct 2012
    Location
    Poland
    Posts
    70
    Vote Rating
    5
    szimek is on a distinguished road

      1  

    Default


    What does it mean "next release" in this case? 2.2.0 alpha? Because it still doesn't work in 2.1.0.

    BTW. Is it possible to see a commit that fixed this issue, so that I can fix it without updating to 2.2.0 alpha?

    EDIT: It looks like it was fixed in 2.1.1 release.