{ "id": "94569", "key": "TIMOB-9954", "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": "13502", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 Core", "archived": true, "released": true, "releaseDate": "2012-07-15" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-09T05:12:27.000+0000", "created": "2012-07-08T11:47:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "community", "core", "module_animation", "qe-review", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "18746", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94027", "key": "TIMOB-9827", "fields": { "summary": "Android: Translate animations of invisible views may be delayed", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-08-09T05:12:27.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "To alleviate differences in platform units, the following can be inserted into Tiapp.xml (in this case to force everything to dip):\r\ndip\r\n\r\nThis however breaks the animate function when using positioning on Android. For example if I have a view (bear in mind, units are not given so defaults to dip):\r\n{quote}\r\nvar view = Ti.UI.createView(\\{\r\n\tbackgroundColor:'#252525',\r\n\ttop:80,\r\n\tleft:0,\r\n\twidth:100,\r\n\theight:100\r\n\t\\});\r\n{quote}\r\nWhich I then choose to animate:\r\n{quote}\r\nvar a2 = Titanium.UI.createAnimation();\r\na2.top = 80;\r\na2.left = 50;\r\na2.duration = 800;\r\nview.animate(a2);\r\n{quote}\r\nIt seems that while the animation is occuring, it reads the top/left animate values in pixels (rather than dip) which really ruins the animation. At the end of the animation it switches back to dip so ultimately the view does get put in the correct place but obviously in very buggy way.\r\n", "attachment": [], "flagged": false, "summary": "Android: Animate incorrectly positions when ti.ui.defaultunit is set to a non-platform default (Tiapp.xml)", "creator": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "environment": "Android 4.0.4 (tested specifically on Samsung S3), (latest Titanium SDK)\r\nTi SDK: 2.1.0.GA", "comment": { "comments": [ { "id": "202852", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Hi Sam,\r\n\r\nWhat version of the Ti SDK are you using?\r\n\r\nRegards,\r\nVarun", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-11T23:01:15.000+0000", "updated": "2012-07-11T23:01:15.000+0000" }, { "id": "202862", "author": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "body": "Hi Varun,\r\n\r\nGot this from the \"Run Diagnostic Test\" part of Titanium Studio; I'm reasonably new to this environment so let me know if there's a better way.\r\n\r\n{quote}\r\nTitanium Mobile SDK Version: 2.1.0\r\nMobile SDK Modules API Version:2\r\nMobile SDK Timestamp: 06/28/12 12:16\r\nMobile SDK Build Number: 6e3cab6\r\n{quote}\r\n\r\nThanks,\r\nSam", "updateAuthor": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-12T00:10:28.000+0000", "updated": "2012-07-12T00:10:28.000+0000" }, { "id": "203012", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Hi Sam,\r\n\r\nThanks for this info. You can also just look at the tiapp.xml file for the sdk you are using.\r\n\r\nThanks,\r\nVarun", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-12T13:37:04.000+0000", "updated": "2012-07-12T13:37:04.000+0000" }, { "id": "203019", "author": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "body": "Hi Varun,\r\nJust checked, its definitely using 2.1.0. I tried with 2.0.2 and the issue is also present.\r\n\r\nIf it helps, I made a really simple sample app (based off the single window starter) to demonstrate the issue. Just load (I can only test on Android) and click the grey box, it should smoothly move to the right but instead dips down two-thirds of the screen during the transition!\r\n\r\nExported from Ti Studio: http://beaver6813/dev/Titanium/JiraTestcase.zip\r\n\r\nCheers,\r\nSam\r\n", "updateAuthor": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-12T13:57:41.000+0000", "updated": "2012-07-12T13:57:41.000+0000" }, { "id": "203061", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Test case for TIMOB-9827 will cover this, since (in the testing notes) I'll specifically tell the tester to use that tiapp.xml setting.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-12T16:50:03.000+0000", "updated": "2012-07-12T16:50:03.000+0000" }, { "id": "203063", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "I ended up fixing this while working on TIMOB-9827. Pull request for that item coming soon (today).", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-12T16:50:51.000+0000", "updated": "2012-07-12T16:50:51.000+0000" }, { "id": "203199", "author": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "body": "Good work Bill, I guess this can be marked as resolved now then. Any idea when 2.2.0 is being cut/released? At the moment I've had to work around by manually running any DIP values through a function to convert to the platform/system values! (and removing the defaultunit)", "updateAuthor": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-13T14:35:00.000+0000", "updated": "2012-07-13T14:35:00.000+0000" }, { "id": "203247", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Sam - Release 2.2.0 is scheduled to be out at the end of September but we have put this fix in 2.1.1 release that should be out by the end of this month. You can also use CI build now to test the fix with your application and provide feedback.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T22:54:19.000+0000", "updated": "2012-07-13T22:54:19.000+0000" }, { "id": "207972", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with SDK:2.2.0.v20120713210112\r\nVerified with STUDIO:2.1.1.201207161421\r\nDevice: Samsung Galaxy Nexus(4.0.2)\r\n\r\nAnimates the positions correctly when ti.ui.defaultunit is set to non platform dafault(Tiapp.xml)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T23:28:01.000+0000", "updated": "2012-07-16T23:28:01.000+0000" }, { "id": "213514", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T05:11:32.000+0000", "updated": "2012-08-09T05:11:32.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }