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

iOS: headerView/footerView in ListView disappears on half swipe back

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.1.1, Release 5.0.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      TiSDK 3.5.1.GA, 4.1.0.v20150724170127 & 4.2.0.v20150710092422
      iOS 8.4 (iPad/iPhone)

    • Story Points:
      5
    • Sprint:
      2015 Sprint 16 SDK

      Description

      Issue Description

      A listView which contains a headerView or footerView and a ListSection disappear at the time to swipe window back.

      Steps to Reproduce

      1. Navigate from Page1 to page Page2
      2. Swipe from left end of screen to half of screen. And cancel the swipe by moving back to left end of the screen.
      3. All the contents of the headerView/footerView disappear. Screenshot attached.

      Sample Code

      var createCustomView = function(title) {
          var view = Ti.UI.createView({
              backgroundColor: '#222',
              height: 40
          });
          var text = Ti.UI.createLabel({
              text: title,
              left: 20,
              color: '#fff'
          });
          view.add(text);
          return view;
      };
       
      var rows = [];
      for (var i = 0; i < 5; i++) {
          rows.push({ properties: { title: '\u263B Row '+ i }});
      }
       
      var win = Ti.UI.createWindow({
          title: 'Window',
          backgroundColor: 'red',
          navBarHidden: false
      });
       
      var button = Ti.UI.createButton({
         title: 'Open Blue Window' 
      });
       
      button.addEventListener('click', function(){
          var win3 = Ti.UI.createWindow({
              title:"Blue Window",
              backgroundColor:"blue"
          });
          var ls = Ti.UI.createListSection({
              items: rows
          });
          var lv = Ti.UI.createListView({
              height: Ti.UI.FILL, width:Ti.UI.FILL,
              headerView: createCustomView('Header View'),
              footerView: createCustomView('Footer View'),
              contentInsets: { top: 64, bottom: 60 },
              sections: [ls]
          });
          win3.add(lv);
          nav.openWindow(win3);
      });
       
      win.add(button);
      var nav = Ti.UI.iOS.createNavigationWindow({ window: win });
      nav.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                egomez Eduardo Gomez (Inactive)
                Reviewer:
                Chee Kiat Ng (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code