{ "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\n

So I want win1 to allow the following orientations:

\r\n
\r\nTi.UI.PORTRAIT\r\nTi.UI.UPSIDE_PORTRAIT\r\nTi.UI.LANDSCAPE_RIGHT\r\nTi.UI.LANDSCAPE_LEFT\r\n
\r\n

But only allow win2 and win3 the first two (PORTRAIT and\r\nUPSIDE_PORTRAIT), so I set the orientationModes of the\r\nwindows:

\r\n
\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\n

So 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\n

The 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\n

Note that this is using Titanium Mobile 1.6.1,\r\nTitanium Developer 1.3.0, and using iOS\r\n4.3[.1].

{html}", "attachment": [], "flagged": false, "summary": "iOS: TabGroup Reaction to Orientation Changes", "creator": { "name": "menoites", "key": "menoites", "displayName": "Menoites", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "menoites", "key": "menoites", "displayName": "Menoites", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "168207", "author": { "name": "tom", "key": "tom", "displayName": "tom quas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hmm, there hasn't been much progress on this one in a while. I just ran into the same issue using Ti 1.7.2. Is there a work-around? This clearly limits the usability of at least my app, especially for people who don't want type on the small keyboard in portrait mode.", "updateAuthor": { "name": "tom", "key": "tom", "displayName": "tom quas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-10-07T02:57:23.000+0000", "updated": "2011-10-07T02:57:23.000+0000" }, { "id": "174553", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Reassigning this ticket with several watchers, due to Reggie's absence.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-02T05:51:04.000+0000", "updated": "2011-12-02T05:51:04.000+0000" }, { "id": "174591", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce in 1.8.0.1.4af3059 on iPhone Sim iOS 5.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T10:29:56.000+0000", "updated": "2011-12-02T10:29:56.000+0000" }, { "id": "189290", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203291340\r\nTi Mobile SDK 2.0.0.v20120329191102 hash r1fbf18c4\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nCannot reproduce the issue", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T09:49:15.000+0000", "updated": "2012-03-30T09:49:15.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }