{ "id": "120763", "key": "ALOY-842", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" }, { "id": "15753", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-05T20:41:43.000+0000", "created": "2013-10-03T08:07:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy", "builtins", "measurement", "qe-automatedtest" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-05T20:49:07.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": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "Right now, the measurement builtin converts {{dp}} to {{px}} and visa versa for Android only. For iOS, the given value is returned as is.\r\n\r\nThis is understandable, since you would typically use the builtin's methods to get the right dimension for Android in it's system default {{px}} unit, based on a {{dp}} value you use on iOS.\r\n\r\nBut of course this is not really accurate since on retina screens {{1dp}} actually correspondents to {{2px}}.\r\n\r\nSo I'd propose have the builtin take this into account, either as the default or as an option. I prefer to have it as the default.\r\n\r\nThe PR: https://github.com/appcelerator/alloy/pull/249\r\n\r\nRelated docs: http://docs.appcelerator.com/titanium/latest/#!/guide/Transitioning_to_the_New_UI_Layout_System-section-30088148_TransitioningtotheNewUILayoutSystem-UniversalUnitSupport", "attachment": [], "flagged": false, "summary": "Alloy: Have the measurement builtin use actual pixels for iOS as well", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "master", "closedSprints": [ { "id": 21, "state": "closed", "name": "2013 Sprint 22", "startDate": "2013-10-21T20:22:56.406Z", "endDate": "2013-11-03T21:23:56.406Z", "completeDate": "2013-11-21T16:47:05.851Z" } ], "comment": { "comments": [ { "id": "276383", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/254\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-842\r\n\r\nFunctional test should include running the test app on both retina and non-retina ios devices, and ensuring that the runtime tests pass. You should also run it on more than one android device density to ensure that the current tests for it pass as well.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T18:09:29.000+0000", "updated": "2013-10-23T18:09:29.000+0000" }, { "id": "282017", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved fixed and working as expected. \n\nTiSDK 3.2.0.v20131127194046\nCLI 3.2.0-beta\nAlloy 1.3.0-beta\nTitanium Studio 3.2.0.201311262027\n\niPad OS 7 and simulator\nAndroid Google Nexus Galaxy 4.3\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T23:12:41.000+0000", "updated": "2013-12-02T23:12:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }