Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13485] iOS: Animation won't start on table view rows that are not visible

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsreprod
ReporterDaniel Sefton
AssigneeUnknown
Created2013-04-08T23:27:37.000+0000
Updated2018-02-28T20:03:43.000+0000

Description

*Problem description* Animations won't start on table view rows that are not visible. *Steps to reproduce* 1. Run test case. 2. See that all visible UiLabels are red. 3. Scroll down to see that UILabels previously not in view are still black. *Test case*
var win = Ti.UI.createWindow({
	backgroundColor : '#ffffff'
});

var data = [];
for (var i = 0; i < 10; i++) {
	var r = Ti.UI.createTableViewRow({
		height : 100
	});
	var label = Ti.UI.createLabel({
		text : 'Animated teststring',
		color : '#000000'
	});
	r.add(label);
	label.animate({
		color : '#ff0000',
		duration : 300
	});
	data.push(r);
}

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

win.add(tableView);
win.open();

Comments

  1. Daniel Sefton 2013-04-08

    Tested and confirmed on iOS 6 simulator, Ti SDK 3.0.2 GA, latest 3.1 CI
  2. Lee Morris 2017-05-24

    I have been able to reproduce this issue with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705021158 Ti SDK 6.1.0.v20170519131839 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.7.0_80

JSON Source