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

iOS: Unable to disable animation for ListSection.*Items(At) methods

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      SDK 3.3.0.GA

      Description

      Problem Description

      This ticket is related to TIMOB-16115 as it is the same bug, but now also found in insertItemsAt(), replaceItemsAt() and appendItems().

      Steps to reproduce

      1. Create new mobile project (classic titanium)
      2. Paste this code into app.js

      var items = [
          {properties: {title: 'Cod'}},
          {properties: {title: 'Haddock'}},
          {properties: {title: 'Fish'}},
          {properties: {title: 'Clam'}}
      ];
       
      var section = Ti.UI.createListSection();
      section.setItems(items);
       
      var list = Ti.UI.createListView({
          top: 60
      });
      list.appendSection(section);
       
      var insert = Ti.UI.createButton({
          title: 'Insert'
      });
       
      insert.addEventListener('click', function(e) {
          section.insertItemsAt(1, items, {
              animated: false,
              animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
          });
      });
       
      var replace = Ti.UI.createButton({
          title: 'Replace'
      });
       
      replace.addEventListener('click', function(e) {
          section.replaceItemsAt(1, 1, items, {
              animated: false,
              animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
          });
      });
       
      var append = Ti.UI.createButton({
          title: 'Append'
      });
       
      append.addEventListener('click', function(e) {
          section.appendItems(items, {
              animated: false,
              animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
          });
      });
       
      var set = Ti.UI.createButton({
          title: 'Set'
      });
       
      set.addEventListener('click', function(e) {
          section.setItems(items, {
              animated: false,
              animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
          });
      });
       
      var toolbar = Ti.UI.iOS.createToolbar({
          top: 20,
          items: [insert, append, replace, set],
          extendBackground: true
      });
       
      var win = Ti.UI.createWindow();
       
      win.add(toolbar);
      win.add(list);
       
      win.open();
      

      3. Run it simulator.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration