[TIMOB-19589] Android: In ListViews transform is sometimes forgotten
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-12-06T22:18:20.000+0000 |
Affected Version/s | Release 4.1.1 |
Fix Version/s | n/a |
Components | Android |
Labels | TCSupportTriage |
Reporter | Pier Paolo Ramon |
Assignee | Unknown |
Created | 2014-10-04T22:44:01.000+0000 |
Updated | 2019-12-06T22:18:20.000+0000 |
Description
Trying to implement a reversed list (one that has its start at the bottom of the screen) for a messaging app using double rotation (see the reproducibility code) some rows do not get the transformation property.
Looks like is the first one to be offscreen that shows this behavior.
var win = Ti.UI.createWindow();
var items = [];
var i = 0, l = 20;
for (; i < l; i++) {
items.push({
label: {
text: 'hallo ' + i
}
});
}
var section = Ti.UI.createListSection({
items: items
});
var reversedTemplate = {
childTemplates: [
{
type: 'Ti.UI.Label',
bindId: 'label',
properties: {
top: 10,
right: 10,
bottom: 10,
left: 10,
transform: Ti.UI.create2DMatrix({ rotate: 180 })
}
}
]
};
var list = Ti.UI.createListView({
defaultItemTemplate: 'reversed',
sections: [ section ],
separatorInsets: { right: 20, left: 0 },
templates: { reversed: reversedTemplate },
transform: Ti.UI.create2DMatrix({ rotate: 180 })
});
win.add(list);
win.open();
Unable to reproducible. Axway Appcelerator Studio, build: 5.1.4.201909061933 macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.2 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.3.0.GA iPhone 11 13.2.2 Pixel 3 Android API 29