{ "id": "138704", "key": "TIMOB-17939", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-11-24T16:08:14.000+0000", "created": "2014-10-29T19:14:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-24T16:08:14.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": "h3. Issue\r\n\r\nWhen using a tabGroup and inside one of the tabs the window calls a new window with tabBarHidden as true and Orientation set to Landscape, we go back the TabGroup bar size will get reduced (Attachment: tabgroup.png ), if tabBarHidden is not called or set to false the issue is not present.\r\n\r\nh3. Steps to repro\r\n\r\n1. Run the test code\r\n2. Click on 'Open Landscape'\r\n3. Close the new window either from 'Done' button or '< login' navBar button\r\n\r\nh5. Expected Result\r\nWill return to the previous window and the tabGroup bar will show again.\r\n\r\nh5. Actual Result\r\nWill return to the previous window but the tabGroup bar is reduced in size.\r\n\r\nh3. Test Code\r\n\r\n{code}\r\nfunction openTabGroup(){\r\n\tvar tabGroup = Titanium.UI.createTabGroup();\r\n\tvar tabs = [];\r\n\t\r\n\tfor(var i=0;i<4;++i){\r\n\t\tvar win = Ti.UI.createWindow({\r\n\t\t\ttitle:'login',\r\n\t\t\tbackgroundColor:'#E7E7E7'\r\n\t\t});\r\n\t\r\n\t\tvar goBtn = Ti.UI.createButton({\r\n\t\t\ttitle:'Open Landscape',\r\n\t\t\tid:i\r\n\t\t});\r\n\t\ttabs[i] = Titanium.UI.createTab({\r\n\t\t id:'Tab '+i,\r\n\t\t icon:'KS_nav_ui.png',\r\n\t\t window:win\r\n\t\t});\t\r\n\t\t\r\n\t\tgoBtn.addEventListener('click',function(){\r\n\t\t\tvar newWin = Ti.UI.createWindow({\r\n\t\t\t\ttitle:'login',\r\n\t\t\t\tbackgroundColor:'#E7E7E7',\r\n\t\t\t tabBarHidden : true\r\n\t\t\t});\t\r\n\t\t\t\r\n\t\t\tvar btnDone = Ti.UI.createButton({ title:'Done'});\r\n\t\t btnDone.addEventListener('click', function(){\r\n\t\t newWin.close();\r\n\t\t });\r\n\t\t \r\n\t\t\tnewWin.add(btnDone);\r\n\t\t\tnewWin.orientationModes = [ Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT ];\t\t\r\n\t\t\ttabs[this.id].open(newWin);\r\n\t\t});\r\n\t\t\r\n\t\twin.add(goBtn);\r\n\t\ttabGroup.addTab(tabs[i]);\r\n\t}\r\n\ttabGroup.open();\r\n}\r\nopenTabGroup();\r\n{code}", "attachment": [ { "id": "52239", "filename": "tabgroup.png", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-29T19:14:32.000+0000", "size": 63168, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: tabGroup bar size reduced if hidden and orientation is forced to landscape", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "333393", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "body": "In order to get this to work as expected the correct way is to implement is to use a modal window, here is a sample on how to get this to work, also we include a sample keeping the navigation bar(that will require a navigationWindow).\r\n\r\n{code}\r\nfunction openTabGroup(){\r\n\tvar tabGroup = Titanium.UI.createTabGroup();\r\n\tvar tabs = [];\r\n\t\r\n\tfor(var i=0;i<4;++i){\r\n\t\tvar win = Ti.UI.createWindow({\r\n\t\t\ttitle:'login',\r\n\t\t\tbackgroundColor:'#E7E7E7',\r\n\t\t\tlayout:'vertical'\r\n\t\t});\r\n\t\r\n\t\tvar navBtn = Ti.UI.createButton({\r\n\t\t\ttop:20,\r\n\t\t\ttitle:'Open Navigation Landscape',\r\n\t\t\tid:i\r\n\t\t});\r\n\t\tvar goBtn = Ti.UI.createButton({\r\n\t\t\ttop:20,\r\n\t\t\ttitle:'Open Modal Landscape',\r\n\t\t\tid:i\r\n\t\t});\r\n\t\ttabs[i] = Titanium.UI.createTab({\r\n\t\t id:'Tab '+i,\r\n\t\t icon:'KS_nav_ui.png',\r\n\t\t window:win\r\n\t\t});\t\r\n\t\t\r\n\t\tnavBtn.addEventListener('click',function(){\r\n\t\t\tvar newWin = Ti.UI.createWindow({\r\n\t\t\t\ttitle:'Chart',\r\n\t\t\t\tbackgroundColor:'#E7E7E7',\r\n\t\t\t});\t\r\n\t\t\t\r\n\t\t\tvar btnDone = Ti.UI.createButton({ title:'Done'});\r\n\t\t btnDone.addEventListener('click', function(){\r\n\t\t navWin.close({animated:false});\r\n\t\t });\r\n\t\t \r\n\t\t\tnewWin.add(btnDone);\t\r\n\t\t\tvar navWin = Ti.UI.iOS.createNavigationWindow({\r\n\t\t\t modal: true,\r\n\t\t\t\twindow: newWin,\r\n\t\t\t\torientationModes:[ Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT ]\r\n\t\t\t});\r\n\t\t\tnavWin.open({animated:false});\r\n\t\t});\r\n\t\t\r\n\t\tgoBtn.addEventListener('click',function(){\r\n\t\t\tvar newWin = Ti.UI.createWindow({\r\n\t\t\t\ttitle:'Chart',\r\n\t\t\t\tbackgroundColor:'#E7E7E7',\r\n\t\t\t tabBarHidden : false,\r\n\t\t\t modal:true,\r\n fullscreen : false\r\n\t\t\t});\t\r\n\t\t\t\r\n\t\t\tvar btnDone = Ti.UI.createButton({ title:'Done'});\r\n\t\t btnDone.addEventListener('click', function(){\r\n\t\t newWin.close({animated:false});\r\n\t\t });\r\n\t\t newWin.orientationModes=[ Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT ];\r\n\t\t\tnewWin.add(btnDone);\t\t\r\n\t\t\tnewWin.open();\r\n\t\t});\r\n\t\t\r\n\t\twin.add(goBtn);\r\n\t\twin.add(navBtn);\r\n\t\ttabGroup.addTab(tabs[i]);\r\n\t}\r\n\ttabGroup.open({animated:false});\r\n}\r\nopenTabGroup();\r\n{code}", "updateAuthor": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T16:08:05.000+0000", "updated": "2014-11-24T16:08:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }