[TIMOB-1410] Can't Add Children to Table Rows 1.4.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | ipad, regression, render, rows, tableviewrow |
Reporter | Paul Armstrong |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:51:32.000+0000 |
Updated | 2011-04-17T01:56:06.000+0000 |
Description
As the title says, any attempt at adding a child to a tableViewRow results in an empty row with no separators between the previous and next rows.
Example:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow();
var table = Ti.UI.createTableView({
height: 44,
width: 400,
top: 300,
style: Ti.UI.iPhone.TableViewStyle.PLAIN
}); var tableRow = Ti.UI.createTableViewRow({
title: 'Table 1',
height: 44,
width: 400
}); var theswitch = Ti.UI.createSwitch({
value: true,
right: 10
}); tableRow.add(theswitch);
table.appendRow(tableRow);
win.add(table);
var table2 = Ti.UI.createTableView({
height: 44,
width: 400,
top: 600,
style: Ti.UI.iPhone.TableViewStyle.PLAIN
});
var tableRow2 = Ti.UI.createTableViewRow({
title: 'Table 2',
height: 44,
width: 400
}); table2.appendRow(tableRow2);
win.add(table2);
win.open();
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T02:51:32.000+0000 | 886 |
capture-1.png | 2011-04-15T02:51:32.000+0000 | 127285 |