{ "id": "120414", "key": "TIMOB-15338", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-09-12T11:44:46.000+0000", "created": "2013-09-24T19:45:28.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "orientation", "orientationmodes", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:41:54.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": "Setting *\"orientationModes = [Ti.UI.PORTRAIT];\"* has no effect on android, as windows continue to change to other orientation\r\n\r\nUsed to work on TI 2.x, not working anymore on TI 3.x\r\n\r\n{code:javascript}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n// create controls tab and root window\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n orientationModes: [Ti.UI.PORTRAIT],\r\n});\r\nwin1.orientationModes = [Ti.UI.PORTRAIT];\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n// create controls tab and root window\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android orientationModes not working", "creator": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "TI 3.1.3", "comment": { "comments": [ { "id": "272827", "author": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Clean example:\r\n\r\n{code:javascript}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n orientationModes: [Ti.UI.PORTRAIT], \r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nwin1.open();\r\n\r\n{code}", "updateAuthor": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-09-25T12:24:41.000+0000", "updated": "2013-09-25T12:24:41.000+0000" }, { "id": "284364", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with latest master, I couldn't reproduce the problem, it is working as expected.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-15T16:31:35.000+0000", "updated": "2013-12-15T16:31:35.000+0000" }, { "id": "323250", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA, 3.2.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\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T11:44:04.000+0000", "updated": "2014-09-12T11:44:04.000+0000" }, { "id": "414489", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:41:54.000+0000", "updated": "2017-03-21T21:41:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }