[TIMOB-5546] MobileWeb: Method add works incorrectly with tableViewRow
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-13T03:40:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-06-01T02:00:26.000+0000 |
Updated | 2017-03-09T20:24:11.000+0000 |
Description
Method Ti.UI.TableViewRow.add adds the child object to the next row instead of the defined in the code.
var win = Ti.UI.currentWindow;
var tableView = Ti.UI.createTableView({
width: 300,
height: 200,
top: 140,
// rowHeight: 30,
left: 10,
backgroundColor: '#00ACDC',
separatorColor: 'black',
fontSize: 13,
fontStyle: 'italic',
fontFamily: 'Helvetica Neue',
fontWeight: 'bold',
});
win.add(tableView);
row1 = Ti.UI.createTableViewRow({title: 'This is row 1'});
row2 = Ti.UI.createTableViewRow({title: 'This is row 2'});
row3 = Ti.UI.createTableViewRow({title: 'This is row 3'});
row4 = Ti.UI.createTableViewRow({title: 'This is row 4'});
row5 = Ti.UI.createTableViewRow({title: 'This is row 5'});
row6 = Ti.UI.createTableViewRow({title: 'This is row 6'});
row7 = Ti.UI.createTableViewRow({title: 'This is row 7'});
tableView.appendRow(row1);
tableView.appendRow(row2);
tableView.appendRow(row3);
tableView.appendRow(row4);
tableView.appendRow(row5);
tableView.appendRow(row6);
tableView.appendRow(row7);
var label = Ti.UI.createLabel({
// text: 'inner label',
width: 30,
height: 20,
backgroundColor: 'red',
right: 5
})
row2.add(label);
Closing ticket as fixed.