[TIMOB-24848] Windows: ListView template with left and right defined causes crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-27T13:16:16.000+0000 |
Affected Version/s | Release 6.1.0 |
Fix Version/s | Release 6.2.0 |
Components | Windows |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Kota Iguchi |
Created | 2017-06-19T11:57:10.000+0000 |
Updated | 2017-08-14T11:13:34.000+0000 |
Description
- Creating a template View with
left
and right
properties defined causes a crash when more than two items are added to the list
var win = Ti.UI.createWindow({ backgroundColor: 'white' }),
list = Ti.UI.createListView({
templates: {
template: {
childTemplates: [
{
type: 'Ti.UI.Label',
bindId: 'title',
properties: {
left: '5dp',
right: '5dp'
}
}
]
}
},
defaultItemTemplate: 'template'
}),
section = Ti.UI.createListSection(),
items = [];
for (var i = 0; i < 3; i++) {
items.push({
title: { text: 'TEXT' }
});
}
section.setItems(items);
list.setSections([section]);
win.add(list);
win.open();
https://github.com/appcelerator/titanium_mobile_windows/pull/1025
6_2_X backport merged in https://github.com/appcelerator/titanium_mobile_windows/pull/1048 Awaiting the build before closing
Verified in 6.2.0.v20170811022027