Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16115

iOS: Unable to disable animation when using ListView.setItems()

    Details

    • Story Points:
      13
    • Sprint:
      2014 Sprint 16 SDK, 2014 Sprint 17 SDK, 2014 Sprint 22 SDK

      Description

      Reproduce Step

      1. Run below test code. (case1 & case2)
      2. You can see wired section animation

      actual Result

      see this video : http://screencast.com/t/rajjRG1g
      When items.length is same, it work properly.
      But if items.length is changed, it work with wired animation

      var win = Ti.UI.createWindow({
          backgroundColor : 'white'
      });
       
      var listView = Ti.UI.createListView();
      var section = Ti.UI.createListSection();
      listView.sections = [section];
       
      var items = [];
       
      var i=0;
      setInterval(function(){
          items.push({
              properties : {
                  title : 'Item '+ i++
              }
          });
          // case 1 : animated = false 
          /*
          section.setItems(items,{
              animated : false
          });
          */
          // case 2 : animationStyle = Ti.UI.iPhone.RowAnimationStyle.NONE
          section.setItems(items,{
              animationStyle : Ti.UI.iPhone.RowAnimationStyle.NONE
          });
      },1000);
       
       
      win.add(listView);
      win.open();
      

      Expected Result

      If set animated to false or animationStyle to NONE, there are no animation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                yomybaby Jong Eun Lee
                Reviewer:
                Jon Alter
                Tester:
                Kajenthiran Velummaylum
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18127
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration