{ "id": "87088", "key": "TIMOB-8379", "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": "2020-01-10T18:03:05.000+0000", "created": "2012-02-28T09:44:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "reprod" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "56884", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172171", "key": "TIMOB-26354", "fields": { "summary": "Android: Refactor TabGroup and introduce new style", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2020-01-10T18:03:05.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": "h4. Problem Description\r\nI want to use some tabs with some content only in landscape mode. That doesn't work.\r\n\r\nh4. Actual Results\r\nthe window doesn't lock\r\n\r\nh4. Expected results\r\nthe tabs being locked at LAndscape\r\n\r\nh4. Test Case\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff',\r\n\ttitle : 'X'\r\n});\r\nvar win1 = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff',\r\n\ttitle : 'Y'\r\n\r\n});\r\n\r\nwin.orientationModes = [\r\n//Titanium.UI.PORTRAIT,\r\nTitanium.UI.LANDSCAPE_LEFT];\r\n\r\nwin1.orientationModes = [\r\n//Titanium.UI.PORTRAIT,\r\nTitanium.UI.LANDSCAPE_LEFT];\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar tab1 = Titanium.UI.createTab({\r\nicon:'KS_nav_views.png',\r\ntitle:'FirstTab',\r\nwindow:win\r\n\r\n});\r\nvar tab2 = Titanium.UI.createTab({\r\nicon:'KS_nav_views.png',\r\ntitle:'SecondTab',\r\nwindow:win1\r\n});\r\n\r\n// Create a Label.\r\nvar aLabel1 = Ti.UI.createLabel({\r\n\ttext : 'TEST1',\r\n\tcolor : 'red',\r\n\tfont : {fontSize:20},\r\n\theight : 24,\r\n\twidth : 80,\r\n\ttop : 20,\r\n\tleft : 20,\r\n\ttextAlign : 'center'\r\n});\r\n// Create a Label.\r\nvar aLabel2 = Ti.UI.createLabel({\r\n\ttext : 'TEST2',\r\n\tcolor : 'red',\r\n\tfont : {fontSize:20},\r\n\theight : 24,\r\n\twidth : 80,\r\n\ttop : 20,\r\n\tleft : 20,\r\n\ttextAlign : 'center'\r\n});\r\n\r\n// Add to the parent view.\r\nwin.add(aLabel1);\r\nwin1.add(aLabel2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Orientation Landscape not working for tabs", "creator": { "name": "bartix99", "key": "bartix99", "displayName": "bn", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bartix99", "key": "bartix99", "displayName": "bn", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, \r\nbuild: 1.0.8.201201262211, \r\nMac os 10.7.2, \r\nAndroid 2.3 emulator.", "comment": { "comments": [ { "id": "241992", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\nIt works fine on IOS iphone simulator", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T17:00:14.000+0000", "updated": "2013-03-13T17:00:14.000+0000" }, { "id": "424015", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T18:35:19.000+0000", "updated": "2017-07-12T18:35:19.000+0000" }, { "id": "442295", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "In the documentation it is noted that this property will not be supported for windows inside TabGroup:\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-orientationModes\r\n\r\nTabGroup itself respects the property and opens in the proper orientation.\r\n\r\nIs the desired effect to show the content only of a specific tab with a locked orientation and to use the auto-chosen for the rest?", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-10-04T14:31:27.000+0000", "updated": "2018-10-04T14:31:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }