{ "id": "132167", "key": "TIMOB-17199", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-10-24T17:31:37.000+0000", "created": "2014-06-24T07:00:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity", "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:44: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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Orientation does not change When orientation modes property set on Window inside TabGroup.\r\n\r\n{code}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n orientationModes: [Titanium.UI.LANDSCAPE_LEFT]\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n title:'Tab 1',\r\n window:win1\r\n});\r\n \r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n orientationModes: [Titanium.UI.PORTRAIT]\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n title:'Tab 2',\r\n window:win2\r\n});\r\n \r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.open();\r\n{code}\r\n*Steps to reproduce:*\r\n1.Copy Paste the code on app.js and run the app.\r\n2. Click on Tab2.\r\n\r\nExpected Result:\r\n1. App opens in landscape mode, having two tabs sharing 50 % width. \r\n2. App opens in portrait mode, having two tabs sharing 50 % width.\r\n\r\nActual Result:\r\n1. App launches in portrait mode.\r\n2. Tab 2 gets actives and app remains on portrait mode.\r\nWindow's orientation modes does not gets changed.\r\n\r\nNot a regression.\r\nWorking fine for iOS ", "attachment": [], "flagged": false, "summary": "Android: Orientation does not change for Window inside tabGroup", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator-Studio:3.3.0.201406231625\r\nSdk:3.3.0.v20140623161712\r\nacs:1.0.14\r\nalloy:1.4.0-rc2\r\nnpm:1.3.2\r\ntitanium:3.3.0-rc2\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nOS:Maverick(10.9.3)\r\nDevice:Nexus5(v4.4.3)", "closedSprints": [ { "id": 230, "state": "closed", "name": "2014 Sprint 21 SDK", "startDate": "2014-10-13T22:00:57.270Z", "endDate": "2014-10-25T00:00:00.000Z", "completeDate": "2014-10-27T16:33:06.432Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "310710", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201406231625\r\nTitanium SDK, build: 3.3.0.v20140623161712\r\nTitanium CLI, build: 3.3.0-rc2\r\nAlloy: 1.4.0-rc2\r\nDevice: Nexus 4 (4.2)\r\n\r\nApp opens in portrait instead of landscape.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T18:39:11.000+0000", "updated": "2014-06-24T18:39:11.000+0000" }, { "id": "317148", "author": { "name": "msuman49", "key": "msuman49", "displayName": "Sai Suman Mallela", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Has this issue been resolved yet???", "updateAuthor": { "name": "msuman49", "key": "msuman49", "displayName": "Sai Suman Mallela", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-05T20:02:35.000+0000", "updated": "2014-08-05T20:02:35.000+0000" }, { "id": "318735", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.4.0 is moved forward, and 3.5.0 is taking its place in the calendar.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T21:31:53.000+0000", "updated": "2014-08-14T21:31:53.000+0000" }, { "id": "320559", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces in Android and works fine in iOS\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\niOS simulator : iPhone Retina (3.5-inch), iOS 7.0.3", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T12:45:07.000+0000", "updated": "2014-08-27T12:45:07.000+0000" }, { "id": "321343", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "In Android, orientation is associated with the activity but tab windows doesn't have its own activity and setting orientationmodes for tab windows doesn't have any effect.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-09-02T16:19:06.000+0000", "updated": "2014-09-02T16:19:06.000+0000" }, { "id": "321592", "author": { "name": "msuman49", "key": "msuman49", "displayName": "Sai Suman Mallela", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to control the orientation change using the below code:\r\n\r\n{code}\r\nvar self = Ti.UI.createTabGroup();\r\n\r\nvar activity = self.getActivity();\r\n\t\t if(activity)\r\n\t\t activity.requestedOrientation = Titanium.Android.SCREEN_ORIENTATION_PORTRAIT;\r\n{code}\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T15:55:24.000+0000", "updated": "2014-09-03T16:50:40.000+0000" }, { "id": "329362", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not considered to be a good UX design. For those interested in utilizing this functionality, we suggest using the workaround.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-24T17:31:37.000+0000", "updated": "2014-10-24T17:31:37.000+0000" }, { "id": "415490", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:44:30.000+0000", "updated": "2017-03-23T22:44:30.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }