[TIMOB-17880] Flip Animation - Content of Target View remains invisible while animating
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | ios |
Reporter | Tom Giessel |
Assignee | Unknown |
Created | 2014-10-18T12:04:05.000+0000 |
Updated | 2018-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
No comments