Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17880] Flip Animation - Content of Target View remains invisible while animating

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios
ReporterTom Giessel
AssigneeUnknown
Created2014-10-18T12:04:05.000+0000
Updated2018-02-28T20:03:21.000+0000

Description

Hello, I've found a bug on the flip animation that seem to occur since the release of 3.4. If you flip between two views, only the very first flip animation works as it should. On every follow up flip animation, the target view (the view the animation flips to) is not visible, or at least its content ist not visible, until the flip animation has been completed. This bug appears on the Simulator as well as on the device for all iOS versions of 7 and above, which I have tested. To reproduce the error simply use the follow code snippet:
var win = Ti.UI.createWindow({  
	backgroundColor: '#fff',
});

var flipView = Ti.UI.createView({
	backgroundColor: '#fff',
});

var view1 = Ti.UI.createView({
	backgroundColor: 'red',
});

var button1 = Ti.UI.createButton({
	title: 'Flip to view2',
});

view1.add(button1);

var view2 = Ti.UI.createView({
	backgroundColor: 'yellow',
});

var button2 = Ti.UI.createButton({
	title: 'Flip to view1',
});

view2.add(button2);

button1.addEventListener('singletap', function() {
	flipView.animate({
		view: view2,
		transition: Ti.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT,
	});
});

button2.addEventListener('singletap', function() {
	flipView.animate({
		view: view1,
		transition: Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT,
	});
});

flipView.add([view2, view1]);

win.add(flipView);

win.open();
Best regards, Tom

Comments

No comments

JSON Source