{ "id": "142785", "key": "AC-392", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-14T00:56:57.000+0000", "created": "2015-01-14T13:35:42.000+0000", "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-14T00:56:57.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "Retrieving of Ti.Platform.displayCaps differs between devices and simulator:\r\n\r\n~~~\r\nSimulator:\r\nTi.Platform.displayCaps.density: high\r\nTi.Platform.displayCaps.dpi: 320\r\nTi.Platform.displayCaps.platformHeight: 667\r\nTi.Platform.displayCaps.platformWidth: 375\r\nTi.Platform.displayCaps.logicalDensityFactor: 2\r\n\r\n\r\nDevice:\r\nTi.Platform.displayCaps.density: high\r\nTi.Platform.displayCaps.dpi: 320\r\nTi.Platform.displayCaps.platformHeight: 568\r\nTi.Platform.displayCaps.platformWidth: 320\r\nTi.Platform.displayCaps.logicalDensityFactor: 2\r\n\r\n~~~\r\nThis is output using iPhone6. The similar issue is at iPhone6plus and iPhone5.\r\n\r\nOn device all phones works with virtual width of 320. On simulator it depends on model.\r\n\r\nBackground: in some cases I need absolute positioning in a grid. It runs with same geometry on device, but I cannot debug in simulator, because there are other dimensions. ", "attachment": [], "flagged": false, "summary": "Ti.Platform.displayCaps differs simulator/device", "creator": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Simulator 8.1 SDK 3.5.0.GA", "comment": { "comments": [ { "id": "339193", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI,\r\n\r\nJust tried Ti.Platform.displayCaps all properties on my iphone6Plus, Can't reproduce your problem. \r\nBoth of them, display the following info.\r\n{code}\r\n[INFO] : Ti.Platform.displayCaps.density: xhigh\r\n[INFO] : Ti.Platform.displayCaps.dpi: 480\r\n[INFO] : Ti.Platform.displayCaps.platformHeight: 736\r\n[INFO] : Ti.Platform.displayCaps.platformWidth: 414\r\n[INFO] : Ti.Platform.displayCaps.logicalDensityFactor: 3\r\n{code}", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-15T06:54:38.000+0000", "updated": "2015-01-15T06:54:38.000+0000" }, { "id": "339215", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "In my test set the platformWidth differs between simulator and device at iPhone6 and iPhone6plus. On device I can see everywhere 320, on simulator the with is increasing. As I can see from your answer the output differs on devices.\r\nIs it depending of parameters in tiapp.xml? I'm using:\r\ndip\r\n\r\nRainer\r\n", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-15T10:05:01.000+0000", "updated": "2015-01-15T10:05:01.000+0000" }, { "id": "339359", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "I used the same default unit, still can't reproduce your problem with my 6plus device.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-16T01:19:49.000+0000", "updated": "2015-01-16T01:19:49.000+0000" }, { "id": "342008", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have only a common iPhone6 and in my case I see on simulator the physical size and on device normalized (320) dimension. On my iPhone5c in both cases comes the same dimension. I think it is normal. Background: in my project I have to use absolute positoning (tiles in flipboard) and I have to calculate this. ", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-02-04T08:35:07.000+0000", "updated": "2015-02-04T08:35:07.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }