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

Windows: ListView template with left and right defined causes crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2017 Sprint 15 SDK

      Description

      • Creating a template View with left and right properties defined causes a crash when more than two items are added to the list

      var win = Ti.UI.createWindow({ backgroundColor: 'white' }),
          list = Ti.UI.createListView({
              templates: {
                  template: {
                      childTemplates: [
                          {
                              type: 'Ti.UI.Label',
                              bindId: 'title',
                              properties: {
                                  left: '5dp',
                                  right: '5dp'
                              }
                          }
                      ]
                  }
              },
              defaultItemTemplate: 'template'
          }),
          section = Ti.UI.createListSection(),
          items = [];
       
      for (var i = 0; i < 3; i++) {
          items.push({
              title: { text: 'TEXT' }
          });
      }
      section.setItems(items);
      list.setSections([section]);
       
      win.add(list);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                gmathews Gary Mathews
                Reviewer:
                Gary Mathews
                Tester:
                Ewan Harris
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code