{ "id": "97759", "key": "TIMOB-10070", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-15T00:10:54.000+0000", "created": "2012-07-23T00:06:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "api", "breaking-change", "orientation", "qe-and070112" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "56113", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "92989", "key": "TIMOB-9464", "fields": { "summary": "Android: Orientation: Screen does not restrict to orientation modes supported in app.js", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-15T06:22:26.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "On Android platform, setting up the orientation as landscape left/landscape right only doesn't show the correct behaviour.\r\n\r\nThis is not a regression.This issue occurs as far back as 2.0.2\r\n\r\nSteps to reproduce:\r\n\r\n1. Install the app.js and launch it in portrait mode.\r\n2) Hold device so top is pointing left \r\n\r\nActual result:\r\nAfter Step 1) Image appears in landscape left mode \r\nAfter Step 2) Image appears in landscape left mode\r\n\r\nExpected Result:\r\nAfter Step 1) Image appears in landscape right mode \r\nAfter Step 2) Image appears in landscape right mode \r\n\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar img = Ti.UI.createImageView({image:'grouch.jpg'});\r\n\r\nwin.add(img);\r\n\r\nwin.orientationModes = [\r\n Ti.UI.LANDSCAPE_RIGHT\r\n];\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "29950", "filename": "grouch.jpg", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-23T00:06:10.000+0000", "size": 52018, "mimeType": "image/jpeg" }, { "id": "63546", "filename": "OrientationModeTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-06T19:00:07.000+0000", "size": 1077, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Landscape Left/Right handling is backwards", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested with Titanium SDK: 2.1.1.v20120718121609\r\nTested with Titanium  Studio: 2.1.1.201207161421\r\nAndroid Device: Samsung GALAXY Note (2.3.6)\r\nOS: Mac OSX 10.7.3", "comment": { "comments": [ { "id": "239782", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\r\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T10:33:12.000+0000", "updated": "2013-02-28T11:02:38.000+0000" }, { "id": "240022", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does exist.\r\nTested with:\r\nTitanium Studio, build: 3.0.2.201302191606\r\nTitanium SDK, build: 3.0.2.GA\r\nDevices:\r\nAndroid 2.2 Emulator\r\nNexus 7 Android version 4.2\r\nGalaxyS3 Android version 4.0.4\r\n\r\nNOte: *iOS works properly*\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-27T18:56:17.000+0000", "updated": "2013-02-27T21:20:30.000+0000" }, { "id": "299607", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is reproducible.\n\nEnvironment used:\nDevice : Google Nexus 5, Android Version: 4.4.2\nSDK: 3.2.3.v20140401134117\nCLI version : 3.2.3-alpha2\nOS : MAC OSX 10.9.2\nAlloy: 1.3.1\nACS: 1.0.14\nnpm:1.3.2\nAppcelerator Studio, build: 3.2.3.201403271839\ntitanium-code-processor: 1.1.1-alpha\nXCode : 5.1 ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-02T11:48:43.000+0000", "updated": "2014-04-02T11:48:43.000+0000" }, { "id": "429913", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To be clear, the issue here is that Android's LANDSCAPE_LEFT and LANDSCAPE_RIGHT handling does not match the documentation.\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-LANDSCAPE_LEFT\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-LANDSCAPE_RIGHT\r\n\r\nFor a phone, LANDSCAPE_LEFT is when the bottom of the device is on the left side and LANDSCAPE_RIGHT is when the bottom of the device is on the right side. This is how it works on an iOS device. Android does the opposite of this and this is what needs to be corrected.\r\n\r\n*Side Note:*\r\nFor large Android tablets whose upright orientation is landscape, the notion of landscape left/right is meaningless (there is no iOS equivalent for this case). Currently, the upright orientation is LANDSCAPE_LEFT. However, I think it should be LANDSCAPE_RIGHT instead since that is the most commonly used landscape position.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-31T20:09:39.000+0000", "updated": "2017-10-31T20:09:39.000+0000" }, { "id": "430107", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9585", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-04T05:40:12.000+0000", "updated": "2017-11-04T05:40:12.000+0000" }, { "id": "430173", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attached [^OrientationModeTest.js] script to help test window orientation mode landscape left/right handling.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-06T19:00:57.000+0000", "updated": "2017-11-06T19:00:57.000+0000" }, { "id": "430257", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merge to get enabled to merge.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-07T23:42:01.000+0000", "updated": "2017-11-07T23:42:01.000+0000" }, { "id": "430633", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T00:10:54.000+0000", "updated": "2017-11-15T00:10:54.000+0000" }, { "id": "430673", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes are seen in SDK 7.0.0.v20171114202841.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T06:22:26.000+0000", "updated": "2017-11-15T06:22:26.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }