Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15701] iOS7: Label flickers when updating another Label in the same TableViewRow

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-11-14T19:35:19.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 23, 2013 Sprint 23 API, Release 3.2.0
ComponentsiOS
Labelsqe-closed-3.2.3, qe-testadded, triage
ReporterDavide Cassenti
AssigneeVishal Duggal
Created2013-11-12T14:30:30.000+0000
Updated2014-03-12T08:38:50.000+0000

Description

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.

Comments

  1. Ingo Muschenetz 2013-11-14

    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
  2. Vishal Duggal 2013-11-14

    Reopening to change resolution
  3. Priya Agarwal 2014-03-12

    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.

JSON Source