{ "id": "116676", "key": "TIMOB-14483", "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": null, "resolutiondate": null, "created": "2013-06-30T21:50:38.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "gesture", "orientation" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:44.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "*Problem*\r\nTi.Gesture.isPortrait() doesn't work properly.\r\n\r\n*Steps to reproduce*\r\n1. Turn on application (PORTRAIT)\r\n2. Press home button\r\n3. Change orientation to LANDSCAPE\r\n4. Turn on application and console will show:\r\n\r\nTwice value TRUE for isPortrait()\r\n\r\n*Test case*\r\n{code:javascript} \r\nvar win = Ti.UI.createWindow();\r\n\r\nTi.Gesture.addEventListener(\"orientationchange\", function(e) {\r\n\tconsole.log(\"Ti.Gesture.isPortrait() ---> \" + Ti.Gesture.isPortrait());\r\n});\r\n\r\nTi.Gesture.fireEvent(\"orientationchange\");\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.Gesture.isPortrait() returns true even during landscape mode", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1 GA", "comment": { "comments": [ { "id": "260784", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My apologies, I didn't follow the steps correctly. I can in fact confirm this. Tested with both 3.1 GA and 3.1.1 GA on iOS 6 simulator. isPortrait() returns true when returning to the app from the background after rotating to landscape.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T18:24:48.000+0000", "updated": "2013-07-03T18:24:48.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }