Description
When setting height to auto on a listview with many rows, the scrolling will break
var win = Ti.UI.createWindow(),
list = Ti.UI.createListView({
templates: {
template: {
childTemplates: [
{
type: 'Ti.UI.Label',
bindId: 'title',
properties: {
left: '5dp'
}
}
]
}
},
defaultItemTemplate: 'template',
height: 'auto'
}),
section = Ti.UI.createListSection(),
items = [];
for(var i = 0; i <100; i++) {
items.push({
title: { text: 'TEXT' }
});
}
section.setItems(items);
list.setSections([section]);
win.add(list);
win.open();
Steps to reproduce
Add the above to an existing app.js
Build for a windows target
Actual
When the height is set to auto scrolling breaks
Expected
When the height is set to auto the scrolling should not break
Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1037
Verified fix in SDK Version 6.2.0.v20170808012225 and SDK Version 7.0.0.v20170808071205. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1037