{ "id": "84405", "key": "TIMOB-6951", "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": "2012-02-10T00:07:00.000+0000", "created": "2012-01-02T10:29:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14463", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84555", "key": "TIDOC-175", "fields": { "summary": "APIDoc: Platform - document differences between platforms for DisplayCaps vs displayCaps", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:07:00.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": "In 1.8.0.1 Ti.Platform.displayCaps is undefined on iOS. It's not critical, since iOS does not need that information so much as Android does, but either the information should be provided, or the cross-platform limitations should be documented.", "attachment": [], "flagged": false, "summary": "iOS: Ti.Platform.displayCaps is undefined", "creator": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": "* Titanium Mobile 1.8.0.1\r\n* iOS5\r\n* iPhone simulator\r\n* OSX", "comment": { "comments": [ { "id": "178046", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket requires a test case before it can be resolved. DisplayCaps is not {{undefined}} or {{null}} under normal circumstances, as in this test app:\r\n\r\n{code}\r\nvar caps = Ti.Platform.displayCaps;\r\nTi.API.info(caps.density);\r\nTi.API.info(caps.dpi);\r\nTi.API.info(caps.platformWidth);\r\nTi.API.info(caps.platformHeight);\r\n{code}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T16:20:15.000+0000", "updated": "2012-01-04T16:22:55.000+0000" }, { "id": "178443", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "I cannot reproduce the issue with {{displayCaps}} on iPhone simulator + iOS5 with either 1.8.0.1 or 1.7.5.\r\n\r\nHowever, when it is spelled with a capital, {{DisplayCaps}}, is it undefined. See errors:\r\n\r\n{code}\r\n[INFO] ImageViewTest/1.0 (1.7.5.ab20af7)\r\n[ERROR] Script Error = Result of expression 'Ti.Platform.DisplayCaps' [undefined] is not an object. at app.js (line 2).\r\n\r\n[INFO] ImageViewTest/1.0 (1.8.0.1.fbdc96f)\r\n[ERROR] Script Error = Result of expression 'Ti.Platform.DisplayCaps' [undefined] is not an object. at app.js (line 2).\r\n{code}\r\n\r\nOn Android 2.2 + 1.8.0.1, it works regardless.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-06T20:54:33.000+0000", "updated": "2012-01-06T20:55:36.000+0000" }, { "id": "178511", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As per discussion with Marshall and Opie, the correct API point is {{Ti.Platform.displayCaps}}, which matches the documentation. {{Ti.Platform.DisplayCaps}} may not even be a valid object on Android.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-09T09:59:09.000+0000", "updated": "2012-01-09T09:59:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }