[AC-2119] iOS: selectRow method keeps highlightedColor of label in some specific cases
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-04-01T18:37:32.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | highlighted, highlightedcolor, selectrow, tableview, tableviewrow |
| Reporter | Rafael Kellermann Streit |
| Assignee | Mostafizur Rahman |
| Created | 2013-03-30T18:09:52.000+0000 |
| Updated | 2016-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
| File | Date | Size |
|---|---|---|
| Screen Shot 2013-03-30 at 3.08.40 PM.png | 2013-03-30T18:09:52.000+0000 | 127059 |
Fixed in latest nightly builds. Tested with 3.1.0.v201326095819
Closing since the issue can't be reproduce with any version of the TISDK since 3.1.