{ "id": "78939", "key": "TIMOB-4944", "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": "12077", "description": "", "name": "Sprint 2011-37", "archived": true, "released": true, "releaseDate": "2011-09-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-21T09:21:32.000+0000", "created": "2011-08-08T18:54:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:22.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": "When rotating a tabGroup from portrait to landscape the navBar does not resize as it should.\r\n\r\nStep 1: run the code below\r\nStep 2: rotate the device from portrait to landscape\r\nStep 3: notice that the navBar does not change height\r\nStep 4: click the other tab\r\nStep 5: notice the tabBar snap to the smaller height\r\n\r\n{code:title=\"app.js\"}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n orientationModes:[Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT,Titanium.UI.PORTRAIT]\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff',\r\n orientationModes:[Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT,Titanium.UI.PORTRAIT]\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\ntabGroup.open();\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-854153", "attachment": [ { "id": "22625", "filename": "4A129BB2-8C81-46FE-A686-33800F7A6C0D.mov", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T13:07:22.000+0000", "size": 4318230, "mimeType": "video/quicktime" }, { "id": "22954", "filename": "tabGroup-navBar.jpg", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T17:24:11.000+0000", "size": 17704, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: tabGroup navbar ", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Regression\r\nWorks properly with 1.7.1\r\nDoes not work properly with 1.7.2\r\niOS Simulator 4.3", "comment": { "comments": [ { "id": "163651", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attached an video that demonstrates the issue.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T13:07:22.000+0000", "updated": "2011-08-22T13:07:22.000+0000" }, { "id": "166252", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3. Another Repro Case\r\n\r\nStep 1: run the code below\r\nStep 2: rotate the device to landscape and then back to portrait\r\nStep 3: notice the black at bar at the top of the window and the navBar size\r\n(attached screenshot)\r\n\r\n{code:title=app.js}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\torientationModes : [Ti.UI.PORTRAIT]\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n\ttext : 'I am a label'\r\n});\r\nwin1.add(label1);\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle : \"tab1\",\r\n\twindow : win1\r\n});\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n\r\nvar win2 = null;\r\nTi.Gesture.addEventListener('orientationchange', function(e) {\r\n\r\n\tif(win2 == null) {\r\n\t\twin2 = Ti.UI.createWindow({\r\n\t\t\tbackgroundColor : 'blue',\r\n\t\t\torientationModes : [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n\t\t});\r\n\t\tvar label2 = Ti.UI.createLabel({\r\n\t\t\ttext : 'I am a label'\r\n\t\t});\r\n\t\twin2.add(label2);\r\n\t}\r\n\tif(e.orientation === Ti.UI.LANDSCAPE_RIGHT || e.orientation === Ti.UI.LANDSCAPE_LEFT) {\r\n\t\twin2.open();\r\n\t} else {\r\n\t\twin2.close();\r\n\t}\r\n});\r\n{code}\r\n\r\nh3. Resolution\r\nConfirmed fixed with 1.8.0.v20110915133349, iOS 4.3", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T17:23:53.000+0000", "updated": "2011-09-15T22:02:28.000+0000" }, { "id": "166496", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue was fixed as a side effect of Blain's fix of splash screen orientation and this problem should no longer exist. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-21T09:20:58.000+0000", "updated": "2011-09-21T09:20:58.000+0000" }, { "id": "166567", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix confirmed on both iOS 4.3 and 5 simulators in addition to an iPod touch running 4.3.3 with SDK 1.8.0.v20110920000211.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-21T14:57:31.000+0000", "updated": "2011-09-21T14:57:31.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }