{ "id": "93398", "key": "TIMOB-9606", "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": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-24T13:51:09.000+0000", "created": "2012-06-18T08:31:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:39:53.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Titanium provides universal unit support by allowing the developer to specify unit types when specifying absolute layout parameters ( ie: width, height, left, etc.).\r\n\r\nif the developer specifies a layout parameter without specifying a unit, the system selects the default unit type ( currently pixels ).\r\n\r\nThe developer must explicitly specify the layout type for unit types that are not the default pixel unit.\r\n\r\nexample: \r\n width: \"123dp\"\r\n or\r\n width: \"123mm\"\r\n\r\nRarely do application developers create applications that mix units. Therefore devleopers must append to every unit specification the unit type if they do not want to use the default pixels.\r\n\r\nCausing the following issues:\r\n - reduces the efficiency of the developer, \r\n - increases the probability of user created bugs in the application code.\r\n - increases the size of the executing code,\r\n - decreases the performance do to the increased code execution size.\r\n\r\nAdding a default unit override would resolve these issues allowing the developer to set the number and omit the unit type.\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "TiAPI: Allow configuration of the default unit (pixels, dpi, etc.)", "creator": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "target: Android, iOS, mobile Web", "closedSprints": [ { "id": 690, "state": "closed", "name": "2016 Sprint 17 Tooling", "startDate": "2016-08-13T00:01:26.394Z", "endDate": "2016-08-27T00:01:00.000Z", "completeDate": "2016-08-29T03:15:35.641Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "394093", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Titanium has supported a {{ti.ui.defaultunit}} property for a long, long time. It's been in the {{tiapp.xml}} for all new projects since Titanium SDK 2.0.0.\r\n\r\n{code}\r\ndp\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T13:51:10.000+0000", "updated": "2016-08-24T13:51:10.000+0000" }, { "id": "413153", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:39:53.000+0000", "updated": "2017-03-16T21:39:53.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }