{ "id": "84264", "key": "TIMOB-6889", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-27T07:41:14.000+0000", "created": "2011-12-27T07:32:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" } ], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2017-03-22T22:34:42.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": "h2. Problem\r\n\r\nIf you have a TabGroup tab, containing a window stack where the first window's tabBarHidden property is set to true and then open a new window in the tab with tabBarHidden set to false, the tab bar will not become visible as expected.\r\n\r\nIt is also worth noting that the inverse of this works as expected; ie initial window's tabBarHidden is set to false, and subsequent window's tabBarHidden is set to true.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title.app.js}\r\nTi.UI.setBackgroundColor('black');\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n tabBarHidden:true,\r\n title:'Window 1',\r\n backgroundColor:'white',\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n textAlign:'center',\r\n text:'I am win1'\r\n});\r\nwin1.add(label1);\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n tabbarHidden:false, // should cause tabgroup bar to be shown \r\n title:'Window 2',\r\n backgroundColor:'white'\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n textAlign:'center',\r\n text:'win2 - tabgroup bar should be visible but its not'\r\n});\r\nwin2.add(label2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n\r\nlabel1.addEventListener('click', function() {\r\n//\ttab1.open(win2);\r\n\ttabGroup.activeTab.open(win2);\r\n});\r\n{code}\r\n\r\nh2. Related discussions\r\n\r\nQ&A: [Initially Hidden TabGroup Bar Cannot Be Unhidden|http://developer.appcelerator.com/question/129905/initially-hidden-tabgroup-bar-cannot-be-unhidden]\r\n", "attachment": [ { "id": "24847", "filename": "Screen Shot 2011-12-27 at 10.37.00 AM.png", "author": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T07:37:04.000+0000", "size": 121397, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: UI - when tabGroup tab first window has tabbarHidden enabled, subsequent window tabGroup bar also hidden", "creator": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium SDK version: 1.7.5 and 1.8.0.1 (official releases)\r\n* Javascript Engine: V8 \r\n* Platform & version: iOS 5.0\r\n* Device Details: iOS simulator\r\n* Host Operating System: OSX 10.5\r\n* Titanium Studio version: 1.0.7.201112152014", "comment": { "comments": [ { "id": "177262", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this ticket, Kyle\r\n\r\nIn order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], and add any missing information.\r\n\r\nFurthermore a test case must be provided, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] section. A test case is the minimal amount of code necessary to reproduce the issue, in a single script (if possible), that runs without modification, and is added as a code block in the body of the ticket.\r\n\r\nI will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-27T07:41:01.000+0000", "updated": "2011-12-27T07:41:01.000+0000" }, { "id": "177265", "author": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Case for replicating problem", "updateAuthor": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T08:00:24.000+0000", "updated": "2011-12-27T08:00:24.000+0000" }, { "id": "177266", "author": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I added the missing information & a test case but I am unable to re-open the ticket.", "updateAuthor": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T08:09:23.000+0000", "updated": "2011-12-27T08:09:23.000+0000" }, { "id": "177274", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Kyle\r\n\r\nAs stated in the [The Bug-Reporting Lifecycle|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-TheBugReportingLifecycle], an issue must be discussed with the community before raising a ticket. Would you please provide a link to that discussion in the [Q&A|http://developer.appcelerator.com/questions/created]?\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-27T08:58:14.000+0000", "updated": "2011-12-27T08:58:14.000+0000" }, { "id": "177298", "author": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I did not do this before posting the bug report but I have done ahead and posted on the Q&A. There are no comments on it as of yet:\r\n\r\nhttp://developer.appcelerator.com/question/129905/initially-hidden-tabgroup-bar-cannot-be-unhidden", "updateAuthor": { "name": "kyledecot", "key": "kyledecot", "displayName": "Kyle Decot", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T11:22:06.000+0000", "updated": "2011-12-27T11:22:06.000+0000" }, { "id": "177300", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Kyle\r\n\r\nI have reproduced the issue now. Thank you for conscientiously-including all the necessary information. I will move this ticket to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-27T11:23:10.000+0000", "updated": "2011-12-27T11:23:32.000+0000" }, { "id": "415140", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the information that was requested not being provided.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:34:42.000+0000", "updated": "2017-03-22T22:34:42.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }