{ "id": "171162", "key": "AC-5614", "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": "2018-02-23T18:35:29.000+0000", "created": "2018-02-22T17:30:29.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-02-23T18:35:29.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": "IOS SDK 7.0.2GA\r\nIt is possible to have Gesture.portrait == false and Gesture.landscape == false\r\n\r\nTi.Gesture.addEventListener('orientationchange', function (e) {\r\n Ti.API.info('source.portrait:' + e.source.portrait + ' source.landscape:' + e.source.landscape);\r\n});\r\n\r\nYou only have to put your tablet on a table (horizontaly)\r\n\r\nThis is inconsistent.\r\n", "attachment": [], "flagged": false, "summary": "Ti.Gesture has 3 orientation", "creator": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "434802", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a bug. This is the correct behavior.\r\n\r\n{{Ti.Gesture}} provides the device's orientation, not the app window's orientation.\r\n\r\nSo, when you lay the tablet flat on a table, the {{Ti.Gesture.orientation}} property will return FACE_UP if the screen is facing up towards the sky or FACE_DOWN if the screen is facing down towards the Earth. The device will only return true for {{portrait}} or {{landscape}} when the device is held upright, but note that this does not represent the orientation of the app window.\r\n\r\nIf you want to know the orientation of your app window, then you should read the {{Ti.UI.Window.orientation}} property instead.\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-orientation\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-23T02:31:50.000+0000", "updated": "2018-02-23T02:32:14.000+0000" }, { "id": "434810", "author": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "body": "You are right ! Sorry for the wrong issue. I misused these informations since the beginning", "updateAuthor": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-23T10:38:42.000+0000", "updated": "2018-02-23T10:38:42.000+0000" }, { "id": "434833", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No worries. Happy to help!", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-23T18:35:20.000+0000", "updated": "2018-02-23T18:35:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }