TabGroup buggy behaviour

You must Login before you can answer or comment on any questions.

I have been reading a lot about tabgroups and looking for help in the community site, but can't find this problem.

I had tabgroups working fine (on iOS) , then suddenly all the tabs are working except for - The window view does not show - the header title bar is missing - the setActive tab does not set the tab

I have tried to distill the code down to the bare essence of creating a couple of windows and tabs, but still no joy.

Here is some example code that doesn't work, can anyone shed any light on why this doesn't work?

— asked 1 year ago by Ketan Majmudar
1 Comment
  • Anyone get a chance to look at this. Its very puzzling.

    — commented 1 year ago by Ketan Majmudar

1 Answer

Accepted Answer

try this when creating the tabGroup, I have removed the bottom and the height properties and everything is working now

// Create New tab group before adding individual tabs
var tabGroup1 = Ti.UI.createTabGroup({
    id: 'firstTabGroup',
    barColor: 'green'
});

— answered 1 year ago by Aaron Saunders
answer permalink
1 Comment
  • Thanks Aaron, yes it did work. if i used this piece of code:

    // Create New tab group before adding individual tabs
    var tabGroup1 = Ti.UI.createTabGroup({
        id: 'firstTabGroup',
        barColor: 'green'
    });
    tabGroup1.bottom = 0;
    Then everything works and I can see the window and the title bar. With a little trial and error it looks like its the height property that is causing the buggy behaviour. As the following code works fine too, as soon as you add the height property the screen goes black and the header bar dissapears..
    // Create New tab group before adding individual tabs
    var tabGroup1 = Ti.UI.createTabGroup({
        id: 'firstTabGroup',
        barColor: 'green',
        bottom: 0
    });
    Cheers.

    — commented 1 year ago by Ketan Majmudar

Your Answer

Think you can help? Login to answer this question!