Description of the problem
When trying to update a label inside a TableViewRow, if the row (or the table itself) have height set to Ti.UI.SIZE, the text of the label cannot be changed.
Steps to reproduce
Use the following code; clicking on a window it should update the text of the row itself to 'After...', but this only works once.
var win = Ti.UI.createWindow({
backgroundColor : 'black'
});
var table = Titanium.UI.createTableView({
// COMMENT THE NEXT LINE AND EVERYTHING WORKS
height : Ti.UI.SIZE
});
function addRow(ii) {
var row = Titanium.UI.createTableViewRow({
width : '100%',
height : 100
});
var label = Ti.UI.createLabel({
text : 'Before ' + ii
});
row.add(label);
row.openDetails = function(e) {
alert(label.text);
label.text = 'After ' + ii;
};
return row;
}
var rows = [];
for (var i = 0; i < 10; i++) {
rows.push(addRow(i));
}
table.setData(rows);
table.addEventListener('click', function(e) {
e.row.openDetails();
});
win.add(table);
win.open();
Same code works fine with SDK 3.1.0
Created almost 3 years ago.... still a problem.