[TIMOB-24849] Android: ListView items with border would not render correctly when scrolling
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-06-30T13:15:20.000+0000 |
| Affected Version/s | Release 6.1.1 |
| Fix Version/s | Release 6.2.0 |
| Components | Android |
| Labels | qe-6.2.0 |
| Reporter | Gary Mathews |
| Assignee | Gary Mathews |
| Created | 2017-06-19T19:20:02.000+0000 |
| Updated | 2017-06-30T14:13:53.000+0000 |
Description
- Sometimes items with
borderWidth would not render correctly when scrolling fast down a ListView
var win = Ti.UI.createWindow({backgroundColor: 'gray'}),
list = Ti.UI.createListView({
templates: {
template: {
childTemplates: [
{
type: 'Ti.UI.View',
bindId: 'item',
properties: {
top: '5dp', bottom: '5dp',
width: '200dp', height: '50dp',
borderWidth: '8dp',
backgroundColor: 'green'
}
}
]
}
},
defaultItemTemplate: 'template'
}),
section = Ti.UI.createListSection(),
items = [];
for (var i = 0; i < 24; i++) {
var colour = i % 2 ? 'green' : 'yellow';
items.push({
item: {
backgroundColor: colour,
borderColor: colour
}
});
}
section.setItems(items);
list.setSections([section]);
win.add(list);
win.open();
master: https://github.com/appcelerator/titanium_mobile/pull/9159
{noformat} SDK Version : Local 6.2.0 Mac OS Version : 10.12.5 Appc CLI : 6.2.2 Appc NPM : 4.2.9 Node : v6.10.3 Device: Nexus 5x(6.0.1), Pixel XL(7.1.2) Emulator: (7.0), (6.0), (4.4.2) {noformat} Using above env passed FR. After merge, the changes are present in {6.2.0.v20170630062735}}. *Closing*