{ "id": "62379", "key": "TIMOB-1747", "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": [ { "id": "11229", "name": "Release 1.5.0 M04", "archived": true, "released": true, "releaseDate": "2010-12-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:03.000+0000", "created": "2011-04-15T03:01:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "displaycaps", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:03.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

on a 3g/3gs/ipod touch (4g or older) = \"low\"
\niPad = \"high\"
\niPhone4 = \"high\"

\n

expected:iPad and 3g/3gs/ipod touch should be \"medium\", retina\ndisplays to return \"high\"

\n

script snippet for repro:

\n

var win = Titanium.UI.currentWindow;
\nTitanium.UI.setBackgroundColor('#FFF');

\n

var label = Ti.UI.createLabel({

\n
\nwidth:\"auto\",\nheight:\"auto\",\ntop:10,\nleft:10,\nright:10,\ntext : 'value goes here',\n
\n

});

\n

label.text = Titanium.Platform.displayCaps.density;

\n

win.add(label);

{html}", "attachment": [], "flagged": false, "summary": "iOS - displayCaps returns unexpected value on everything but iphone 4", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126537", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

as per a brief talk with Stephen, popping this up to high.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:13.000+0000", "updated": "2011-04-15T03:01:13.000+0000" }, { "id": "126538", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

\nhttps://github.com/appcelerator/titanium_mobile/commit/9dc1f12609b5...

\n

[#1747 state:fixed-in-qa] Changing a string and\nconditional around and voila.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:15.000+0000", "updated": "2011-04-15T03:01:15.000+0000" }, { "id": "126539", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ipad 3g, ipod touch 4g both 4.2.1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:01:15.000+0000", "updated": "2011-04-15T03:01:15.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }