{ "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
\ncode:
\nvar win = Titanium.UI.createWindow({
\n\ntitle:\"window\",
\n
\n});
\nvar view = Ti.UI.createView({
\nbackgroundColor:'red',\nheight:100,\nwidth:100,\ntop:10
\n
\n});
\nvar a = Ti.UI.createAnimation();
\na.center = {x:100,y:100}
\na.duration = 1000;
view.addEventListener('click', function()
\n{
\nTi.API.info(a)\nview.animate(a);
\n
\n});
\nwin.add(view);
\nwin.open();
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.
Similarly for color
and\nbackgroundColor
. They should all be fixed now.
(from [84de36dc450d652588500a1a70455966f77a736f])\nCloses #521: Setter for 'center' (and 'color', and\n'backgroundColor') needed to be custom. \nhttp://github.com/appcelerator/titanium_mobile/commit/84de36dc450d6...