Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7441] Android: Ti.UI.createAnimation ignores a transform property in the creation dict.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-06-29T14:26:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsapi, parity
ReporterArthur Evans
AssigneePing Wang
Created2012-01-26T17:55:02.000+0000
Updated2017-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);

Comments

  1. Ping Wang 2012-06-29

    Can not reproduce with latest master
  2. Lee Morris 2017-03-10

    Closing this ticket as the issue cannot be reproduced.

JSON Source