Project: titanium
Issue TIMOB-19232: iOS: headerView/footerView in ListView disappears on half swipe back
h6.Issue Description A listView which contains a headerView or footerView and a ListSection disappear at the time to swipe window back. h6.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. h6.Sample Code {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(); {code}
Story points: 5