Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5546] MobileWeb: Method add works incorrectly with tableViewRow

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-06-13T03:40:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-06-01T02:00:26.000+0000
Updated2017-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);

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source