{ "id": "61153", "key": "TIMOB-521", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11222", "name": "Release 1.2.0", "archived": true, "released": true, "releaseDate": "2010-04-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:22.000+0000", "created": "2011-04-15T02:30:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "animation", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

click on view = crash

\n

code:

\n

var win = Titanium.UI.createWindow({

\n
\ntitle:\"window\",\n
\n

});

\n

var view = Ti.UI.createView({

\n
\nbackgroundColor:'red',\nheight:100,\nwidth:100,\ntop:10\n
\n

});

\n

var a = Ti.UI.createAnimation();
\na.center = {x:100,y:100}
\na.duration = 1000;

\n

view.addEventListener('click', function()
\n{

\n
\nTi.API.info(a)\nview.animate(a);\n
\n

});

\n

win.add(view);

\n

win.open();

{html}", "attachment": [], "flagged": false, "summary": "animating with center causes crash", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123458", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Fixed. Problem was that although color is set properly when\ncalling -[TiAnimation initWithDictionary:], it was NOT\nset properly in the synthesized methods for the center\nproperty.

\n

Similarly for color and\nbackgroundColor. They should all be fixed now.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:56.000+0000", "updated": "2011-04-15T02:30:56.000+0000" }, { "id": "123459", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [84de36dc450d652588500a1a70455966f77a736f])\nCloses #521: Setter for 'center' (and 'color', and\n'backgroundColor') needed to be custom. \nhttp://github.com/appcelerator/titanium_mobile/commit/84de36dc450d6...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:56.000+0000", "updated": "2011-04-15T02:30:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }