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

Windows: Calling insertRowBefore with an existing row causes application to freeze

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.1.0
    • Component/s: Windows
    • Labels:
    • Environment:

      OS: Microsoft Windows 10 Pro 10.0.14393
      Appc core: 6.0.0-69
      Appc NPM: 4.2.8-9
      Ti SDK: 6.0.0.v20161107075927
      Lumia 550 10.0

    • Story Points:
      5
    • Sprint:
      2017 Sprint 03 SDK

      Description

      Description

      When calling insertRowBefore with a row that has been taken from the table, not a dictionary or a newly created row, the application appears to freeze

      var _window = Ti.UI.createWindow();
      var table = Ti.UI.createTableView({
          top: 0,
          bottom: 0
      });
       
      var tableData = [];
       
      for (var i = 0; i < 10; i++) {
          tableData.push(Ti.UI.createTableViewRow({
              title: "Row " + (i + 1)
      }));
      }
       
      table.setData(tableData);
       
      _window.add(table);
       
      table.addEventListener("click", function(e) {
          var row = table.data[e.index];
          Ti.API.info('index');
          Ti.API.info(e.index);
          Ti.API.info(row.title);
          table.insertRowBefore(0, row);
      });
      _window.open();
      

      Steps to reproduce
      1. Add the code above to an existing app.js
      2. Build for Windows Platform
      3. Tap a row
      Actual result

      Application appears to freeze on the row click

      Expected result

      A duplicate of the row clicked should be added to the top of the tableview

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration