[TIMOB-15629] Android: Tableviewrow.left inconsistent behavior
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-02T22:38:51.000+0000 |
Affected Version/s | Release 3.1.2, Release 3.1.3 |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 API, Release 3.3.0 |
Components | Android |
Labels | module_tableviewrow, qe-closed-3.3.0, qe-testadded |
Reporter | Marco Cota |
Assignee | Sunila |
Created | 2013-10-31T21:58:59.000+0000 |
Updated | 2014-07-31T03:42:14.000+0000 |
Description
PROBLEM
On creating a tableview and a left value is assigned to the rows, on deploy they don't show the left property applied to the title as expected, but as the tableview is scrolled some of the rows start to apply it randomly.Test case
var win = Ti.UI.createWindow({
title : "home",
backgroundColor : "white"
});
var data = [];
for (var i = 0; i < 100; i++) {
data[i] = Ti.UI.createTableViewRow({
title : 'title' + i,
height : 50,
left : 50,
color : 'red'
});
}
var table = Ti.UI.createTableView({
data : data
});
win.add(table);
win.open();
Attachments
File | Date | Size |
---|---|---|
device-2013-10-31-154102.png | 2013-10-31T21:58:59.000+0000 | 18143 |
Set optionLeft and optionRight only if it is not set https://github.com/appcelerator/titanium_mobile/pull/4994
Verified fix with below environment: Appc Studio: 3.3.0.201404211130 SDK build: 3.3.0.v20140423155715 acs: 1.0.14 npm: 1.3.2 alloy: 1.4.0-dev CLI: titanium-3.3.0-dev titanium-code-processor:1.1.1-beta1 Xcode: 5.1.1 Osx: Mavericks(10.9.2) Device: Nexus 5 (4.4.2) Tableviewrow.left property displays consistent behaviour as per the value given to left property. Hence Closing the issue.