{ "id": "63140", "key": "TIMOB-2508", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:18.000+0000", "created": "2011-04-15T03:21:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:18.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}

The following animation technique is broken in the current 1.5\ncontinuous builds. Verified on iOS. \nCommunity question Attached movie showing behavior:

\n
\nTitanium.UI.setBackgroundColor('#000');\n\nvar win = Titanium.UI.createWindow({  \n    title:'Window',\n    backgroundColor:'#fff',\n    backButtonName:'Back'\n});\n\nvar imageView=Ti.UI.createImageView({\n    image:'default_app_logo.png',\n    zIndex:1\n});\n\nvar moveImageOneSecButton=Ti.UI.createButton({\n    title:'Move: Duration 1 Sec',\n    top: 10,\n    width:200,\n    height:40,\n    zIndex:2\n});\n\nmoveImageOneSecButton.addEventListener('click', function(){\n        var newX=imageView.center.x + 10;\n        var newY=imageView.center.y + 10;\n        imageView.animate({\n            center: {\n                x: newX,\n                y: newY\n            },\n            duration: 1000\n        });\n        imageView.center.x=newX;\n        imageView.center.y=newY;\n});\n\nvar moveImageOneMilliButton=Ti.UI.createButton({\n    title:'Move: Duration 1 millisec',\n    top: 60,\n    width:200,\n    height:40,\n    zIndex:2\n});\n\nmoveImageOneMilliButton.addEventListener('click', function(){\n        var newX=imageView.center.x + 10;\n        var newY=imageView.center.y + 10;\n        imageView.animate({\n            center: {\n                x: newX,\n                y: newY\n            },\n            duration: 1\n        });\n\n});\n\nvar resetImageButton=Ti.UI.createButton({\n    title:'Reset Image',\n    top: 110,\n    width:200,\n    height:40,\n    zIndex:2\n});\n\nresetImageButton.addEventListener('click', function(){\n        var newX=win.center.x;\n        var newY=win.center.y;\n        imageView.animate({\n            center: {\n                x: newX,\n                y: newY\n            },\n            duration: 1\n        });\n\n});\n\nwin.add(imageView);\nwin.add(moveImageOneSecButton);\nwin.add(moveImageOneMilliButton);\nwin.add(resetImageButton);\n\nwin.open();\n
{html}", "attachment": [ { "id": "18158", "filename": "export_20101206-101018.mov", "created": "2011-04-15T03:21:32.000+0000", "size": 2400339, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iPhone animation resets to center on each execution", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "128664", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Code is being checked in, but part of the issue is that the\ncurrent iphone spec ignores x and y when width or height\nis missing. The animation was still using x and y, against the\nspec, and the layout was honoring the spec, setting things\nfullscreen.

\n

Short version: After the code checkin, the animation will work,\nbut you MUST specify a width and height to the view, even if it's\n'auto' or a percentage.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:33.000+0000", "updated": "2011-04-15T03:21:33.000+0000" }, { "id": "128665", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [83683409c6e93e0977241a2fb5ca9229220ed902])\n[#2508 state:fixed-in-qa] Center is properly\nstored into the proxy's layoutProperties, which makes animation\ncorrect \nhttps://github.com/appcelerator/titanium_mobile/commit/83683409c6e9...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:33.000+0000", "updated": "2011-04-15T03:21:33.000+0000" }, { "id": "128666", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Successful iOS Simulator, iOS Device, and Android Emulator test\non 01/26/2011

\n\n
\n

Mobile SDK version: 1.6.0 (01/25/11 13:33 1f1dd51...)

\n

Device/Version: iPhone 4 / 4.2.1

\n

Simulator Version: 4.2 (235)

\n

Emulator SDK: APIs 2.1

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:33.000+0000", "updated": "2011-04-15T03:21:33.000+0000" }, { "id": "130792", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:25:00.000+0000", "updated": "2011-04-15T07:25:00.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }