Problem description
When updating the text value of a Label inside a TableViewRow, another Label in the same row will flicker. The problem did not occour on iOS6.
Code to reproduce
var win = Ti.UI.createWindow({
backgroundColor: "white"
});
var table = Ti.UI.createTableView({
touchEnabled: 'false',
top: 50
});
var row = Ti.UI.createTableViewRow({
height: 30
});
var lb1 = Ti.UI.createLabel({
text: "Test",
left: "15%",
color: "red"
});
var lb2 = Ti.UI.createLabel({
text: "",
right: "5%",
color: "blue"
});
row.add(lb1);
row.add(lb2);
table.setData([row]);
win.add(table);
win.open();
var nn = 1;
setInterval(function() {
lb2.text = "Change " + nn;
nn++;
}, 2000);
Note
On iOS6, the same code does not flicker.
Based on feedback from [~rtlechuga]: Using latest master SDK (from CI builds) : We can not reproduce the issue Using latest 3.1.x SDK (from CI builds) : We can not reproduce the issue
Reopening to change resolution
Appc Studio:3.2.2.201403061827 Sdk:3.2.3.v20140311115447 alloy:1.3.1 titanium:3.2.1 titanium-code-processor:1.1.0 Osx: Maverick(10.9.2) Device:iPod Touch2(v7.1 beta5),LG-970(V4.0.4) xCode:5.1 No flickering is shown on updating labels on same row.