{ "id": "107008", "key": "AC-2457", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-01-02T20:07:12.000+0000", "created": "2012-12-21T18:22:35.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:30.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": [], "description": "If you change the position (left) of parent View the child views will start shrinking. I have been told to use //$.container.width=Ti.Platform.displayCaps.platformWidth;\r\nHowever, Ti.Platform.displayCaps.platformWidth gives me 320 on retina display. I need 640 for this to work. I am using everything in pixels as I defined in tiapp.xml\r\nWhy cannot platformWidth give me 640 which is the true width in pixels? Is it a bug?", "attachment": [], "flagged": false, "summary": "Ti.Platform.displayCaps.platformWidth gives the wrong value when default points pixels", "creator": { "name": "opolyo01", "key": "opolyo01", "displayName": "Oleg Polyakov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "opolyo01", "key": "opolyo01", "displayName": "Oleg Polyakov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Alloy 0.3.3, SDK 2.1.4, CLI 3.0.21", "comment": { "comments": [ { "id": "232904", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "platformWidth/Height returns the display units. Here's how to convert those to pixels:\r\n{code}\r\nfunction DPUnitsToPixels(TheDPUnits)\r\n{\r\n return (TheDPUnits * (Titanium.Platform.displayCaps.dpi / 160));\r\n}\r\n\r\n// If platformWidth is 320, it converts it to 640\r\nDPUnitsToPixels(Titanium.Platform.DisplayCaps.platformWidth);\r\n{code}\r\n\r\nClosing as invalid.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-02T20:07:12.000+0000", "updated": "2013-01-02T20:07:12.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }