{ "id": "83707", "key": "AC-3047", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-25T16:28:34.000+0000", "created": "2011-12-13T08:09:44.000+0000", "labels": [ "api,", "layout" ], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:48:05.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "It appears there is inconsistency with Titanium's api for measurements, some components only allow integer (pixel) values for top/bottom/left/right/height/width whereas others accept integer or strings (so allow density pixels).\r\n\r\nExamples of this: animation object, border radius, borderWidth, etc.\r\n\r\n\r\nTo get around the issue I'm calculating the density pixel value using the pixel value and the displays DPI. See here for solution: http://developer.appcelerator.com/question/125317/calculate-apps-density-pixel-width--height-using-titaniumplatformdisplaycapsdpi", "attachment": [], "flagged": false, "summary": "API inconsistnent for layout/measurements, integer (px) or integer/string (px/dp)", "creator": { "name": "jimmyrocket", "key": "jimmyrocket", "displayName": "Jimmy Forrester-Fellowes", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jimmyrocket", "key": "jimmyrocket", "displayName": "Jimmy Forrester-Fellowes", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "177167", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Jimmy, I am sorry, but it's not clear what you want here. There have been some apidoc changes recently. Hopefully these have clarified when integers or strings are acceptable for a property.\r\n\r\nI am closing for the moment. If you are able to make detail the bugs you have found, then please reopen this ticket.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-25T16:28:26.000+0000", "updated": "2011-12-25T16:28:26.000+0000" }, { "id": "183563", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:11.000+0000", "updated": "2012-02-17T02:23:11.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }