{ "id": "84040", "key": "AC-3147", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-23T03:52:30.000+0000", "created": "2011-12-19T07:57:45.000+0000", "labels": [ "ios", "iphone", "orientation", "tabgroup" ], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:48:13.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I've created a simple app with 2 tabs.\r\nOn creating windows, i've specified portait orientation for window1 and landscape for window2.\r\nOnce clicked on tab2, window2 turn correctly in landscape, but when i click again on tab1, app does not turn in portait mode.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nTi.include(\r\n\tTitanium.Filesystem.resourcesDirectory+'home.js'\r\n);\r\n\r\n(function() {\r\n\t\r\n\tvar win = Ti.UI.createWindow(),\r\n\ttabGroup = Titanium.UI.createTabGroup({\r\n\t\tid : 'mainTabGroup'\r\n\t}),\r\n\twin1 = createWin1({}),\r\n\twin2 = createWin2({}),\r\n\ttab1 = Titanium.UI.createTab({\r\n\t\tid : 'tab1',\r\n\t\ttitle : 'Tab1'\r\n\t}),\r\n\ttab2 = Titanium.UI.createTab({\r\n\t\tid : 'tab2',\r\n\t\ttitle : 'Tab2'\r\n\t});\r\n\t\r\n\ttab1.window = win1;\r\n\ttab2.window = win2;\r\n\r\n\ttabGroup.addTab(tab1);\r\n\ttabGroup.addTab(tab2);\r\n\t\r\n\twin.add(tabGroup);\r\n\t\r\n\ttabGroup.open({\r\n\t\ttransition : Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT\r\n\t});\r\n\r\n})();\r\n{code}\r\n\r\n{code:title=home.js|borderStyle=solid}\r\n(function() {\r\n\t\r\n\tcreateWin1 = function(_args) {\r\n\t\tvar win1 = Ti.UI.createWindow({\r\n\t\t\ttitle:'win1',\r\n\t\t\tbackgroundColor:'#fff',\r\n\t\t\torientationModes: [\r\n\t\t Titanium.UI.PORTRAIT\r\n\t\t ]\r\n\t\t \r\n\t\t}),\r\n\t\tlabel1 = Ti.UI.createLabel({\r\n\t\t\ttext:'Window 1',\r\n\t\t\twidth: '100%',\r\n\t\t\theight: '100%',\r\n\t\t\ttextAlign:'center'\r\n\t\t});\r\n\t\t\r\n\t\twin1.add(label1);\r\n\t\treturn win1;\r\n\t}\t\r\n\t\r\n\tcreateWin2 = function(_args) {\r\n\t\tvar win2 = Ti.UI.createWindow({\r\n\t\t\ttitle:'win2',\r\n\t\t\tbackgroundColor:'#fff',\r\n\t\t\torientationModes: [\r\n\t\t Titanium.UI.LANDSCAPE_LEFT,\r\n\t\t Titanium.UI.LANDSCAPE_RIGHT\r\n\t\t ]\r\n\t\t}),\r\n\t\tlabel2 = Ti.UI.createLabel({\r\n\t\t\ttext:'Window 2',\r\n\t\t\twidth: '100%',\r\n\t\t\theight: '100%',\r\n\t\t\ttextAlign:'center'\r\n\t\t});\r\n\t\t\r\n\t\twin2.add(label2);\r\n\t\treturn win2;\r\n\t}\r\n\t\r\n})();\r\n{code}\r\n\r\n{code:title=tiapp.xml|borderStyle=solid}\r\n\r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n Ti.UI.UPSIDE_PORTRAIT\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n{code} ", "attachment": [], "flagged": false, "summary": "Orientation problems on tabbed application (ios - iphone)", "creator": { "name": "djfabrix", "key": "djfabrix", "displayName": "Fabrizio Riccardo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "djfabrix", "key": "djfabrix", "displayName": "Fabrizio Riccardo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.7.5", "comment": { "comments": [ { "id": "177105", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Fabrizio\r\n\r\nWould you provide the link to the [Q&A question|http://developer.appcelerator.com/questions/created] you created about this, that is a prerequisite to raising tickets?\r\n\r\nAlso, in order for me to escalate this ticket to the core team, it must follow the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist].\r\n\r\nI will close this for now. Please reopen it once it is complete, and I will move it to the main project.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T03:52:19.000+0000", "updated": "2011-12-23T03:52:19.000+0000" }, { "id": "183582", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:18.000+0000", "updated": "2012-02-17T02:23:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }