{ "id": "100574", "key": "TIMOB-10804", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14168", "description": "2012 Sprint 22 API", "name": "2012 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-30T18:24:21.000+0000", "created": "2012-09-06T14:42:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "animation", "api", "module_animation", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-25T11:27:12.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": "1. Run the attached project (test.zip) on Android. Observe the position of the Alloy logo, the top of the logo aligns with the red line.\r\n2. Run the attached project on iOS. Observe the position of the Alloy logo, the center of the logo aligns with the red line.\r\nEXPECTED BEHAVIOR: the logo should animate in from the top of the screen to where the top of the logo is half way down the screen (50% where the blue line is) and then should bounce back to where the top of the logo is one third of the way down the screen (33% where the red line is).\r\nACTUAL BEHAVIOR: Android performs correctly. It looks to me like iOS is animating and positioning the logo based on the centerpoint instead of the top.", "attachment": [ { "id": "32881", "filename": "alloy.png", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-22T18:59:31.000+0000", "size": 23605, "mimeType": "image/png" }, { "id": "31048", "filename": "Screen Shot 2012-09-06 at 2.29.20 PM.png", "author": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T14:42:44.000+0000", "size": 66127, "mimeType": "image/png" }, { "id": "31049", "filename": "Screen Shot 2012-09-06 at 2.30.38 PM.png", "author": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T14:42:44.000+0000", "size": 102179, "mimeType": "image/png" }, { "id": "31050", "filename": "test.zip", "author": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T14:42:44.000+0000", "size": 3380185, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Animation: setting location via percentages is not working correctly on iOS", "creator": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "corthlieb", "key": "corthlieb", "displayName": "Carl Orthlieb", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "224662", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code without alloy\nAnimation with ANIMATE1 button works. Does not work with ANIMATE2 button.\n{code}\nvar win = Ti.UI.createWindow({\n    title : 'Welcome',\n    backgroundColor: \"#fff\"\n});\n\nvar line33 = Ti.UI.createView({\n\ttop:'33%',\n\theight:1,\n\tbackgroundColor:'red'\n})\n\nvar line50 = Ti.UI.createView({\n\ttop:'50%',\n\theight:1,\n\tbackgroundColor:'blue'\n})\n\nvar logo = Ti.UI.createView({\n\topacity: 0,\n\tbottom: \"100%\",\n width: \"216dp\",\n height: \"200dp\",\n backgroundImage: \"/images/alloy.png\"\n})\n\nvar b1 = Ti.UI.createButton({\n\ttitle:'ANIMATE 1',\n\tleft:0,\n\tbottom:0\n})\n\nb1.addEventListener('click',function(){\n\tvar a = Ti.UI.createAnimation();\n\ta.top = '50%'\n \ta.opacity=1;\n\ta.duration=500;\n\tvar animationHandler = function() {\n \t\ta.removeEventListener('complete',animationHandler);\n \t\ta.top = '33%';\n \t\ta.duration=250;\n \t\tlogo.animate(a);\n\t};\n\ta.addEventListener('complete',animationHandler);\n\tlogo.animate(a);\n})\n\nvar b3 = Ti.UI.createButton({\n\ttitle:'INIT',\n\tbottom:0\n})\n\nb3.addEventListener('click',function(){\n\twin.remove(logo);\n\tlogo = null;\n\tlogo = Ti.UI.createView({\n\topacity: 0,\n\tbottom: \"100%\",\n width: \"216dp\",\n height: \"200dp\",\n backgroundImage: \"/images/alloy.png\"\n\t})\n\twin.add(logo);\n});\nvar b2 = Ti.UI.createButton({\n\ttitle:'ANIMATE 2',\n\tright:0,\n\tbottom:0\n})\n\nb2.addEventListener('click',function(){\n\tlogo.animate({opacity:1,top:'50%',duration:500},function(){\n\t\tlogo.animate({top:'33%',duration:250})\n\t});\n});\n\nwin.add(line33);\nwin.add(line50);\nwin.add(logo);\n\nwin.add(b1);\nwin.add(b2);\nwin.add(b3);\n\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-22T18:58:54.000+0000", "updated": "2012-10-22T18:58:54.000+0000" }, { "id": "224663", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The resource file used in test", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-22T18:59:31.000+0000", "updated": "2012-10-22T18:59:31.000+0000" }, { "id": "224664", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3312", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-22T19:02:12.000+0000", "updated": "2012-10-22T19:02:12.000+0000" }, { "id": "224923", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport PR for 3_0_X https://github.com/appcelerator/titanium_mobile/pull/3323", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-25T16:33:07.000+0000", "updated": "2012-10-25T16:33:07.000+0000" }, { "id": "229869", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v20121130200208 with iPhone 4 5.1.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T18:27:17.000+0000", "updated": "2012-12-04T18:27:17.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }