{ "id": "120331", "key": "TIMOB-16069", "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": null, "resolutiondate": null, "created": "2013-09-23T09:36:29.000+0000", "priority": null, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:24.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "setToolbar on a Window with \"tabBarHidden: true\" inside a tabGroup don't layout correctly.", "attachment": [ { "id": "44786", "filename": "Screen Shot 2013-12-22 at 4.27.52 PM.png", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T00:31:44.000+0000", "size": 48824, "mimeType": "image/png" }, { "id": "44787", "filename": "Screen Shot 2013-12-22 at 4.28.43 PM.png", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T00:31:44.000+0000", "size": 70876, "mimeType": "image/png" }, { "id": "42692", "filename": "TabGroup.png", "author": { "name": "antoniov72", "key": "antoniov72", "displayName": "Antonio Vila", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-23T09:36:29.000+0000", "size": 28075, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: setToolbar bad window layout if tabBarHidden is set to true", "creator": { "name": "antoniov72", "key": "antoniov72", "displayName": "Antonio Vila", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "antoniov72", "key": "antoniov72", "displayName": "Antonio Vila", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.1.3.GA iOS 7\r\n3.2.0.GA iOS 7", "comment": { "comments": [ { "id": "272443", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi Antonio Vila,\nPlease add runnable test code and test case that we can easily reproduce this issue.\nThanks\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-23T09:57:47.000+0000", "updated": "2013-09-23T09:57:47.000+0000" }, { "id": "283074", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "We can reproduce the problem with the test case below and 3.2.0 GA SDK.\r\n\r\nh5. Test Code\r\n{code}\r\nvar self = Ti.UI.createTabGroup();\r\n\r\nvar send = Titanium.UI.createButton({\r\n\ttitle : 'Send',\r\n\tstyle : Titanium.UI.iPhone.SystemButtonStyle.DONE,\r\n});\r\n\r\nvar camera = Titanium.UI.createButton({\r\n\tsystemButton : Titanium.UI.iPhone.SystemButton.CAMERA,\r\n});\r\n\r\nvar cancel = Titanium.UI.createButton({\r\n\tsystemButton : Titanium.UI.iPhone.SystemButton.CANCEL\r\n});\r\n\r\nflexSpace = Titanium.UI.createButton({\r\n\tsystemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Home',\r\n\tbarImage : 'images/KS_nav_views.png',\r\n\tbackgroundColor : '#fff',\r\n\ttabBarHidden : true ,\r\n\ttoolbar : [send, flexSpace, camera, flexSpace, cancel]\r\n});\r\nwin1.add(Ti.UI.createLabel({\r\n\ttext : \" Windows can be loaded from another JavaScript file by specifying the property url, referencing a file relative to your application Resources folder. It's important to note that Titanium will refuse to load JavaScript files from a remote URL. Loading remote JavaScript from a URL and providing it with the full capabilities of the Titanium API would be very dangerous.When your Window is loaded from a separate JavaScript file, the code will be executed in a separate JavaScript context (called a sub-context) than your app.js global context. It will also execute in its own separate thread\",\r\n\ttextAlign : 'center'\r\n}));\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle : L('home'),\r\n\ticon : '/images/KS_nav_ui.png',\r\n\twindow : win1\r\n});\r\nwin1.containingTab = tab1;\r\n\r\nself.addTab(tab1);\r\nvar winPhoto = Titanium.UI.createWindow({\r\n\ttitle : '',\r\n\tbarImage : 'images/KS_nav_views.png',\r\n\tbackgroundColor : '#fff',\r\n\ttabBarHidden : false\r\n});\r\nvar tab3 = Titanium.UI.createTab({\r\n\ticon : 'images/KS_nav_views.png',\r\n\ttitle : 'My Photos',\r\n\twindow : winPhoto\r\n});\r\n\r\nself.addTab(tab3);\r\n\r\nself.open();\r\n\r\n\r\n{code}\r\n\r\n \r\nh5. Step to reproduces\r\n1. Create a new project\r\n2. Paste test code in app.js\r\n3. Now run on iOS 7 with simulator 7.0 \r\n4. See simulator screen in bottom side, a black box will display \r\n5. Now set tabBarHidden is false in win1 object (line 24)\r\n6. Run this on iOS 7 simulator \r\n7. Compare both output \r\n\r\nh5. Expected result \r\nBack box will not display if tabBarHidden is true\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T21:34:11.000+0000", "updated": "2013-12-23T00:29:59.000+0000" }, { "id": "285598", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as we can reproduce it with 3.2.0 GA SDK. I have attached two screenshots (tabbarhidden set to true and false) for visual comparison.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T00:31:12.000+0000", "updated": "2013-12-23T00:31:28.000+0000" }, { "id": "298319", "author": { "name": "johnnyleitrim", "key": "johnnyleitrim", "displayName": "John Farrelly", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I get the same problem with 3.2.2 SDK", "updateAuthor": { "name": "johnnyleitrim", "key": "johnnyleitrim", "displayName": "John Farrelly", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-22T20:57:20.000+0000", "updated": "2014-03-22T20:57:20.000+0000" }, { "id": "348172", "author": { "name": "motoy3d", "key": "motoy3d", "displayName": "Motoi Kataoka", "active": true, "timeZone": "Asia/Tokyo" }, "body": "Please fix this issue.\r\n", "updateAuthor": { "name": "motoy3d", "key": "motoy3d", "displayName": "Motoi Kataoka", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2015-04-01T19:45:51.000+0000", "updated": "2015-04-01T19:45:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }