Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15629] Android: Tableviewrow.left inconsistent behavior

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-12-02T22:38:51.000+0000
Affected Version/sRelease 3.1.2, Release 3.1.3
Fix Version/s2013 Sprint 25, 2013 Sprint 25 API, Release 3.3.0
ComponentsAndroid
Labelsmodule_tableviewrow, qe-closed-3.3.0, qe-testadded
ReporterMarco Cota
AssigneeSunila
Created2013-10-31T21:58:59.000+0000
Updated2014-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

FileDateSize
device-2013-10-31-154102.png2013-10-31T21:58:59.000+000018143

Comments

  1. Sunila 2013-11-19

    Set optionLeft and optionRight only if it is not set https://github.com/appcelerator/titanium_mobile/pull/4994
  2. Neha Mittal 2014-04-24

    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.

JSON Source