{ "id": "78776", "key": "TIMOB-4893", "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": "11363", "description": "Mobile 1.8.0 M10", "name": "Sprint 2011-31", "archived": true, "released": true, "releaseDate": "2011-08-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-05T13:11:40.000+0000", "created": "2011-08-04T15:54:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:40.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": "Set the orientationModes for the main window to Landscape Left and Right. If you launch the app when holing the device in landscape left, the window rotates to landscape right (upside down).\r\n\r\nThis worked correctly in 1.6.2, but it is broken in 1.7.2.\r\n\r\nStep 1: run the code below\r\nStep 2: hold the device on its right side (landscape left)\r\nStep 3: launch the app\r\nStep 4: notice that the window rotates upside down\r\nStep 5: kill the app\r\nStep 6: hold the device on its left side (landscape right)\r\nStep 7: launch the app\r\nStep 8: notice that the window rotates right side up\r\n\r\n{code:title=\"app.js\"}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'blue',\r\n\torientationModes: [ Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: \"I am a string\"\r\n});\r\nwin.add(label);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-757474", "attachment": [], "flagged": false, "summary": "iOS: iPad window rotates to the wrong landscape when the app is opened ", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Worked correctly:\r\nTiSDK 1.6.2\r\niPad 2 4.3.2\r\n\r\nIncorrect Behavior:\r\nTiSDK 1.7.2\r\niPad 2 4.3.2", "comment": { "comments": [ { "id": "162962", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with iPad 2 4.3.2, Ti SDK 1.8.0 rf003367e.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-16T10:18:45.000+0000", "updated": "2011-08-16T10:18:45.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }