[TIMOB-7441] Android: Ti.UI.createAnimation ignores a transform property in the creation dict.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-06-29T14:26:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | api, parity |
Reporter | Arthur Evans |
Assignee | Ping Wang |
Created | 2012-01-26T17:55:02.000+0000 |
Updated | 2017-03-10T00:09:53.000+0000 |
Description
For some reason,
create2DMatrix
on Android throws out any transform specified in the creation dict. It works perfectly on iOS. At least 2 days of my life lost trying to debug animation code on this one.
Fail case:
var matrix = Ti.UI.create2DMatrix();
var matrix = matrix.rotate(120);];
var animation = Ti.UI.createAnimation({
duration : 2000,
transform: matrix;
});
view.animate(animation);
The following, however, works as expected:
var matrix = Ti.UI.create2DMatrix();
var matrix = matrix.rotate(120);];
var animation = Ti.UI.createAnimation({
duration : 2000,
});
animation.transform=matrix;
view.animate(animation);
Can not reproduce with latest master
Closing this ticket as the issue cannot be reproduced.