[TIMOB-11375] Android: TableView - Missing tableView with tableViewRows on Android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-11-06T17:58:33.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | 2012 Sprint 21 API, 2012 Sprint 21 |
| Components | Android |
| Labels | api, module_tableview, qe-and100112, qe-testadded, regression |
| Reporter | Tamila Smolich |
| Assignee | Karl Rowley |
| Created | 2012-10-11T00:14:19.000+0000 |
| Updated | 2012-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
It works with the fix for [TIMOB-11320], I'm going to mark this as a duplicate.
Duplicate of [TIMOB-11320]
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)
Editing to fix versions and labels