{ "id": "132851", "key": "TIMOB-17615", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-07-10T08:11:48.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "defaultunit", "unit" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:13.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you set the defaultunit via {{tiapp.xml}} using {{dp}} you can request this in run-time using {{Ti.App.Properties.getString('ti.ui.defaultunit');}}.\r\n\r\nHowever, I'd like to also have {{Ti.App.defaultUnit}} return one of the {{Ti.UI.UNIT_*}} constants, so that in a widget or module (where I'm not in control of the {{tiapp.xml}}) I can more easily detect the current setting and use this e.g. in {{Ti.UI.convertUnits}} when doing complex layout calculations.", "attachment": [], "flagged": false, "summary": "Selected defaultunit should be available under Ti.UI", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.3.0.RC", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }