Description
When adding a headerView or footerView to a listView, if the views do not have a height set then the headerView or footerView
var win = Ti.UI.createWindow({backgroundColor:'green'});
var listView = Ti.UI.createListView();
var header = Ti.UI.createView({backgroundColor: "blue"});
var lbl = Ti.UI.createLabel({text:"Valid"});
header.add(lbl);
var footer = Ti.UI.createView({backgroundColor: "blue"});
var lbl2 = Ti.UI.createLabel({text:"Invalid"});
footer.add(lbl2);
var section = Ti.UI.createListSection({id:"Valid", headerView:header, footerView: footer});
var data = [
{properties: { title: 'Test text'}},
];
section.setItems(data);
listView.setSections([section]);
win.add(listView);
win.open();
Steps to reproduce
Using the code above build for Windows platform
Actual result
The headerView and footerView will be bigger than they should be
Expected
The headerView and footerView should be appropriately sized for the UI elements inside, as is the behaviour on iOS and Android
https://github.com/appcelerator/titanium_mobile_windows/pull/795
Verified using: Windows 10 Pro Appc core: 6.0.0-26 Appc NPM: 4.2.8-5 Ti SDK: 6.0.0.v20160817065403 Lumia 930: 10.0 Luma 520: 8.1 headerView and footerView are now correctly sized to the size of the child views Closing ticket