{ "id": "140658", "key": "AC-388", "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": "2015-11-21T19:12:55.000+0000", "created": "2014-11-27T09:44:20.000+0000", "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-11-21T19:12:55.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": "looking at the code from UIModule (ios) for the convertToUnits method:\r\n\r\n{code:title= titanium_mobile / iphone / Classes / UIModule.m|borderStyle=solid}\r\n if ([TiUtils isRetinaDisplay]) {\r\nresult = fromVal.value*2;\r\n}\r\nelse {\r\nresult = fromVal.value;\r\n}\r\n{code}\r\n\r\nWhich does not take into account the new \"hdd retina\" ", "attachment": [], "flagged": false, "summary": "convertUnits iphone 6 plus calculates wrong pixel size from dips", "creator": { "name": "michelthinksharp", "key": "michelthinksharp", "displayName": "Michel van Gooswilligen", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michelthinksharp", "key": "michelthinksharp", "displayName": "Michel van Gooswilligen", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "369725", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "This is in Ti SDK [core code|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/UIModule.m]. According to the documentation [link|http://docs.appcelerator.com/platform/latest/#!/guide/Layouts,_Positioning,_and_the_View_Hierarchy] iPhone with either original or retina display is based on a 320 x 480 dip grid. Where 1dip=2px on retina. But what about for HD retina display like iPhone6 or iPhone6Plus. So issue is in core code. Where it's only counted the retina display and calculate the conversion to pixels according to documentation ( as two times ). But for iPhone6 and iPhone6 Plus display it's not true. You can get the dpi value for any device by \r\n\r\n{code}\r\nTi.API.info('Ti.Platform.displayCaps.dpi: ' + Ti.Platform.displayCaps.dpi);\r\n{code}\r\n\r\n iPhone 6 plus device is not available here, So we can't test the issue. Thanks.\r\n\r\n\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-11T09:37:07.000+0000", "updated": "2015-11-21T19:12:47.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }