Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6889] iOS: UI - when tabGroup tab first window has tabbarHidden enabled, subsequent window tabGroup bar also hidden

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNeeds more info
Resolution Date2011-12-27T07:41:14.000+0000
Affected Version/sRelease 1.7.5
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterKyle Decot
AssigneePaul Dowsett
Created2011-12-27T07:32:49.000+0000
Updated2017-03-22T22:34:42.000+0000

Description

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)

Attachments

FileDateSize
Screen Shot 2011-12-27 at 10.37.00 AM.png2011-12-27T07:37:04.000+0000121397

Comments

  1. Paul Dowsett 2011-12-27

    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
  2. Kyle Decot 2011-12-27

    Test Case for replicating problem
  3. Kyle Decot 2011-12-27

    I added the missing information & a test case but I am unable to re-open the ticket.
  4. Paul Dowsett 2011-12-27

    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
  5. Kyle Decot 2011-12-27

    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
  6. Paul Dowsett 2011-12-27

    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
  7. Lee Morris 2017-03-22

    Closing ticket due to the information that was requested not being provided.

JSON Source