Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2119] iOS: selectRow method keeps highlightedColor of label in some specific cases

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-04-01T18:37:32.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelshighlighted, highlightedcolor, selectrow, tableview, tableviewrow
ReporterRafael Kellermann Streit
AssigneeMostafizur Rahman
Created2013-03-30T18:09:52.000+0000
Updated2016-03-08T07:41:05.000+0000

Description

When we use *selectRow* method and scroll tableView until hide the selected TableViewRow, if we select another row, the previously selectedRow will keep with labels highlighted.
var win = Ti.UI.createWindow();

var rows = [];
for (var i = 0; i < 100; i++) {
	var row = Ti.UI.createTableViewRow({
		height: 50
	});
	
	row.add( Ti.UI.createLabel({
		color: "#000000",
		text: "Foobar " + i,
		highlightedColor: "#FF0000"
	}) );
	
	rows.push(row);
}

var tableView = Ti.UI.createTableView({
	data: rows
});
win.add(tableView);

tableView.addEventListener("click", function(e) {
	this.selectRow(e.index, { animated: false });
});

win.open();

Attachments

FileDateSize
Screen Shot 2013-03-30 at 3.08.40 PM.png2013-03-30T18:09:52.000+0000127059

Comments

  1. Jamie Buckley 2013-04-01

    Fixed in latest nightly builds. Tested with 3.1.0.v201326095819
  2. Shak Hossain 2013-12-29

    Closing since the issue can't be reproduce with any version of the TISDK since 3.1.

JSON Source