Problem
If 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.
It 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.
Test case
Ti.UI.setBackgroundColor('black');
var tabGroup = Ti.UI.createTabGroup();
var win1 = Ti.UI.createWindow({
tabBarHidden:true,
title:'Window 1',
backgroundColor:'white',
});
var tab1 = Ti.UI.createTab({
title:'Tab 1',
window:win1
});
var label1 = Ti.UI.createLabel({
textAlign:'center',
text:'I am win1'
});
win1.add(label1);
var win2 = Ti.UI.createWindow({
tabbarHidden:false, // should cause tabgroup bar to be shown
title:'Window 2',
backgroundColor:'white'
});
var label2 = Ti.UI.createLabel({
textAlign:'center',
text:'win2 - tabgroup bar should be visible but its not'
});
win2.add(label2);
tabGroup.addTab(tab1);
tabGroup.open();
label1.addEventListener('click', function() {
// tab1.open(win2);
tabGroup.activeTab.open(win2);
});
Related discussions
Q&A: [Initially Hidden TabGroup Bar Cannot Be Unhidden](
http://developer.appcelerator.com/question/129905/initially-hidden-tabgroup-bar-cannot-be-unhidden)
Thanks for raising this ticket, Kyle In 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. Furthermore 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. I will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project. Cheers
Test Case for replicating problem
I added the missing information & a test case but I am unable to re-open the ticket.
Kyle As 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)? Thank you
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: http://developer.appcelerator.com/question/129905/initially-hidden-tabgroup-bar-cannot-be-unhidden
Kyle I have reproduced the issue now. Thank you for conscientiously-including all the necessary information. I will move this ticket to the main project. Cheers
Closing ticket due to the information that was requested not being provided.