Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11375] Android: TableView - Missing tableView with tableViewRows on Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-11-06T17:58:33.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2012 Sprint 21 API, 2012 Sprint 21
ComponentsAndroid
Labelsapi, module_tableview, qe-and100112, qe-testadded, regression
ReporterTamila Smolich
AssigneeKarl Rowley
Created2012-10-11T00:14:19.000+0000
Updated2012-11-06T17:58:33.000+0000

Description

Description: Missing tableViewRows on Android. This is a regression, does not occur on 2.1.3 Steps: 1. Run the following code:
var win = Ti.UI.createWindow({
    fullscreen : false,
    backgroundColor : 'white'
});
 
var tableView = Ti.UI.createTableView({
    top : '0dp',
    bottom : '0dp',
    left : '0dp',
    right : '0dp'
});
 
var numRows = 15;
var rows = [];
for (var i = 0; i < numRows; i++){
    var tableViewRow = Ti.UI.createTableViewRow({
        height : 'auto'
    });
     
    var textField = Ti.UI.createTextField({
        top:'0dp',
        left : '5dp',
        right : '5dp',
        borderColor : '#CCCCCC',
        borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL
    });
     
    tableViewRow.add(textField);
     
    rows.push(tableViewRow);
}
tableView.data = rows;
win.add(tableView);
win.open();
Expected: Should see a tableView with tableViewRows Actual: TableView is missing

Comments

  1. Karl Rowley 2012-10-11

    It works with the fix for [TIMOB-11320], I'm going to mark this as a duplicate.
  2. Karl Rowley 2012-10-11

    Duplicate of [TIMOB-11320]
  3. Tamila Smolich 2012-10-17

    Closing as fixed. Verified and tested on: Titanium Studio, build: 3.0.0.201210151149 Titanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121 Device: Nexus 7 (4.1.1)
  4. Ingo Muschenetz 2012-11-06

    Editing to fix versions and labels

JSON Source