{ "id": "62297", "key": "TIMOB-1665", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T22:36:13.000+0000", "created": "2011-04-15T02:58:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "apidoc", "density", "displaycaps", "ios", "ipad", "iphone", "patch" ], "versions": [], "issuelinks": [], "assignee": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T22:36:13.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": "{html}

Ti.Platform.displayCaps.density is documented to return 'low'\nfor iPhone and 'high' for iPad, which it does in fact do... but\nthis seems really wrong, and is inconsistent with the density\nstrings used for Android:

\n

low: circa 120dpi (close to iPad's 132dpi)
\nmedium: circa 160dpi (close to iPhone 2G/3G's 163dpi, which we\nreport as 160dpi)
\nhigh: 240dpi (halfway between medium and iPhone 4's 326dpi)

\n

\nhttps://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Pl...

\n

In particular, returning 'high' for both iPad (132dpi) and\niPhone 4 (326dpi) seems a bit wrong. :)

\n

Since the value's not reliable, currently we just check the dpi\ndirectly for StatusNet Mobile when determining what resolution\nimages to fetch from the network, which requires our patch for\n#1349 to fix the bogus dpi value on iPhone 4:\n\nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/1349-...

\n

Assigning to our support contact.

{html}", "attachment": [], "flagged": false, "summary": "Ti.Platform.displayCaps.density returns bad values on iPhone 2G/3G, iPad", "creator": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126313", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've whipped up a fix in my work branches:
\nhttp://github.com/brion/titanium_mobile/tree/density

\n

iPhone/iPad fix:
\n\nhttp://github.com/brion/titanium_mobile/commit/4bf669bd37252f4eaaa3...

\n

apidoc fix:
\n\nhttp://github.com/brion/titanium_mobile/commit/1cc430e566f5a97363a1...

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:50.000+0000", "updated": "2011-04-15T02:58:50.000+0000" }, { "id": "421284", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed and lack of progress.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T22:36:13.000+0000", "updated": "2017-06-07T22:36:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }