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

iOS: Custom ListItem does not respect default row-height of 43px, sizing instead (regression)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Release 6.2.2, Release 6.2.0, Release 6.2.1
    • Fix Version/s: None
    • Component/s: iOS
    • Story Points:
      1
    • Sprint:
      2017 Sprint 21 SDK

      Description

      I noticed that custom item-templates will size by default on 6.2.0. It's no blocker as the developer can just set a height of 43 which is the default cell-height, but ideally, we should address that in the height-calculation of the TiUIListView.m already.

      EDIT: It's actually a regression from TIMOB-23436. Reverting the change resolves this issue, so we need to find a better way to fix TIMOB-23436.

      Test-Case:

      var win = Ti.UI.createWindow({backgroundColor: 'white'});
       
      var myTemplate = {
          childTemplates: [
              {                            // Title 
                  type: 'Ti.UI.Label',     // Use a label for the title 
                  bindId: 'info',          // Maps to a custom info property of the item data
                  properties: {            // Sets the label properties
                      color: 'red',
                  }
              }
          ]
      };
       
      var listView = Ti.UI.createListView({
          templates: { 'template': myTemplate },
          defaultItemTemplate: 'template'
      });
      var sections = [];
       
      var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits / Frutas'});
      var fruitDataSet = [
          { info: {text: 'Apple'}},
          { info: {text: 'Banana'}}
      ];
      fruitSection.setItems(fruitDataSet);
      sections.push(fruitSection);
      listView.setSections(sections);
       
      win.add(listView);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                hknoechel Hans Knöchel
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration