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();
PRs merged.
Closing ticket as fixed. Verified headerView and footerView in ListView does not disappear if you swipe midway. Tested on: Appcelerator Studio, build: 4.1.1.201507141126 Appc CLI NPM: 4.1.0-2 Appc CLI Core: 4.1.3-2 Arrow: 1.2.26 SDK: 4.1.1.v20150816214206 Node: v0.10.38 OS: Yosemite (10.10.4) Xcode: 6.4 Devices: iphone 6 plus (8.3), ipad 3 (8.3)
Reopening to fix my comment.