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

iOS 15: Extra spacing applied to list sections

    Details

      Description

      iOS 15 changes the way list sections apply their header spacing. To restore the old behavior, the new sectionHeaderTopPadding can be used (defaulting to sectionHeaderTopPadding). See the example screens (issue.png and fix.png) for reference.

      Example:

      let tabGroup;
       
      const window = Ti.UI.createWindow({ title: 'Window 1', backgroundColor: '#f0f0f0' });
      window.add(Ti.UI.createListView({
          sections: [
              Ti.UI.createListSection({
                  headerView: Ti.UI.createView({ height: 10 }),
                  footerView: Ti.UI.createView({ height: 10 }),
                  items: [
                      { properties: { title: 'Test 1' } },
                      { properties: { title: 'Test 2' } },
                      { properties: { title: 'Test 3' } },
                  ]
              }),
              Ti.UI.createListSection({
                  headerView: Ti.UI.createView({ height: 10 }),
                  footerView: Ti.UI.createView({ height: 10 }),
                  items: [
                      { properties: { title: 'Test 1' } },
                      { properties: { title: 'Test 2' } },
                      { properties: { title: 'Test 3' } },
                  ]
              })
          ]
      }));
       
      const nav = Ti.UI.createNavigationWindow({ window });
      nav.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Joshua Quick
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration