{ "id": "64092", "key": "TIMOB-3460", "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": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "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": "2011-12-02T10:29:56.000+0000", "created": "2011-04-15T03:45:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-30T09:49:15.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
So I have 3 tabs added to my TabGroup, with 1 window per\r\ntab.
\r\n\r\nvar win1 = Ti.UI.createWindow();\r\nvar win2 = Ti.UI.createWindow();\r\nvar win3 = Ti.UI.createWindow();\r\n\r\nvar tab1 = Ti.UI.createTab({window:win1});\r\nvar tab2 = Ti.UI.createTab({window:win2});\r\nvar tab3 = Ti.UI.createTab({window:win3});
\r\n
\r\nSo I want win1 to allow the following orientations:
\r\nTi.UI.PORTRAIT\r\nTi.UI.UPSIDE_PORTRAIT\r\nTi.UI.LANDSCAPE_RIGHT\r\nTi.UI.LANDSCAPE_LEFT
\r\n
\r\nBut only allow win2 and win3 the first two (PORTRAIT and\r\nUPSIDE_PORTRAIT), so I set the orientationModes of the\r\nwindows:
\r\nvar tabGroup = Ti.UI.createTabGroup({barColor:'#000'});\r\n\r\nvar win1 = Ti.UI.createWindow();\r\nvar win2 = Ti.UI.createWindow();\r\nvar win3 = Ti.UI.createWindow();\r\n\r\nwin1.orientationModes = [\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\nwin2.orientationModes = [\r\n Ti.UI.PORTRAIT,\r\n Ti.UI.UPSIDE_PORTRAIT\r\n];\r\nwin3.orientationModes = [\r\n Ti.UI.PORTRAIT,\r\n Ti.UI.UPSIDE_PORTRAIT\r\n];\r\n\r\nvar tab1 = Ti.UI.createTab({window:win1});\r\nvar tab2 = Ti.UI.createTab({window:win2});\r\nvar tab3 = Ti.UI.createTab({window:win3});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.addTab(tab3);\r\ntabGroup.open();
\r\n
\r\nSo when you are in win1 and change the orientation of the\r\ndevice/simulator to landscape and then click onto either of tab2 or\r\ntab3 (Switching to win2 or win3), the orientation will change but\r\nthe tabs will react oddly.
\r\nThe third one will simply disappear with the first two (tab1\r\n& tab2) resizing to be half the tabGroup. After that, there\r\nseems to be no way to get the tab back without closing the app.
\r\nNote that this is using Titanium Mobile 1.6.1,\r\nTitanium Developer 1.3.0, and using iOS\r\n4.3[.1].