{ "id": "104749", "key": "AC-2121", "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": "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": "2013-04-05T21:55:37.000+0000", "created": "2012-11-09T09:20:00.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:06.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": "Every Tabbed Application, the same created by Project Wizard with Tabbed Application Template, with only 2 line added in file _Resources/ui/common/ApplicationTabGroup.js_ introduce a Layout probelem\r\n\r\n{code:title=ApplicationTabGroup.js|borderStyle=solid}\r\nfunction ApplicationTabGroup(Window) {\r\nfunction ApplicationTabGroup(Window) {\r\n\t//create module instance\r\n\tvar self = Ti.UI.createTabGroup();\r\n\t\r\n\t//create app tabs\r\n\tvar win1 = new Window(L('home')),\r\n\t\twin2 = new Window(L('settings'));\r\n\t\r\n\t// HERE MY CHANGES\r\n\twin1.orientationModes = [Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT];\r\n\twin2.orientationModes = [Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];\r\n\r\n\tvar tab1 = Ti.UI.createTab({\r\n\t\ttitle: L('home'),\r\n\t\ticon: '/images/KS_nav_ui.png',\r\n\t\twindow: win1\r\n\t});\r\n\twin1.containingTab = tab1;\r\n...\r\n{code}\r\n\r\nI've fixed the tab1 to only Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT.\r\nI've fixed tha tab2 to Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT, Ti.UI.LANDSCAPE_LEFT and Ti.UI.LANDSCAPE_RIGHT\r\n\r\nLaunching this project with iOS 4.3, device iPhone 4 and SDK 2.1.3GA (but seems to be every 2.x affeccted) there are 2 bug managing the orientation properties of the tabs\r\n\r\nExample 1:\r\n# Launching Project in Portrait Mode\r\n# Switching between tab1 to tab2\r\n# Changing orientation to Lanscape, the tab2 layout will be in LANDSCAPE\r\n# Returning to tab1 the layout still persist in LANSCAPE\r\n\r\n\r\nExample 2:\r\n# Launching Project in Portrait Mode\r\n# Switching between tab1 to tab2\r\n# Returning to tab1\r\n# Changing orientation to Lanscape, the tab1 layout will BLINK and seems to rotate between LANDSCAPE to PORTRAIT\r\n\r\n\r\nThese situation seems to be something wrong in the mapping of TAB orientation properties.", "attachment": [ { "id": "33372", "filename": "test_orientamento.zip", "author": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T09:20:00.000+0000", "size": 3702643, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Tabbed Application changes orientation to Landscape/Blinking with an explicit orientation fixed to PORTRAIT", "creator": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gabriele.ravanelli", "key": "gabriele.ravanelli", "displayName": "gabriele", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio (build: 2.1.2.201208301612)\r\nTitanium SDK 2.1.3 GA\r\niPhone 4 (iOS 4.3)", "comment": { "comments": [ { "id": "246073", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On iOS 6, both 2.1.3 GA and 3.0.2 GA:\r\n> The behavior is as expected - if you switch to tab 2, then you can rotate the application to portrait, landscape left and landscape right. When you switch back to tab 1, it swaps to portrait since that is the only orientation mode supported by the window. It doesn't stay in landscape as described.\r\n\r\nOn iOS 4.3.5, both 2.1.3 GA and 3.0.2 GA:\r\n> The application doesn't rotate at all and remains in portrait with both tabs. I'm not sure if this is an issue or not - I'm guessing it's an OS problem, not ours. But either way it doesn't relate to the behavior you are describing.\r\n\r\nNote that only portrait is listed in the tiapp.xml.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T21:55:37.000+0000", "updated": "2013-04-05T21:56:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }