Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10239] iOS: icons in the tableview if the "more" tab disappear

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 2.1.1, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterPedro Enrique
AssigneeUnknown
Created2012-07-30T15:08:52.000+0000
Updated2018-02-28T20:03:50.000+0000

Description

Description

If all the tabs in a tab group don't fit, a "more" tab appears with a table view containing a list the rest of the windows with it's tab icon in the left hand of the each row.

The problem

If you navigate through a window from the "more" tab at least two windows deep and come back by pressing the back button, an icon will be missing from that table view.

Sample code

var tabGroup = Titanium.UI.createTabGroup();
function NewWindow(tab){
    var win = Ti.UI.createWindow({
        backgroundColor: '#ccc',
        title: tab.title
    });
    var btn = Ti.UI.createButton({
        title: 'open next',
        width: Ti.UI.SIZE,
        height: Ti.UI.SIZE
    });
    win.add(btn);
    tab.setWindow(win);

    btn.addEventListener('click', function(){
        tab.open(NewWindow(tab));
    });

    return win;
}
for(var i = 0; i < 10; i++){
    var tab = Ti.UI.createTab({
        icon: 'KS_nav_ui.png',
        title: 'tab '+(i+1)
    });
    tab.setWindow(NewWindow(tab));
    tabGroup.addTab(tab);
}
tabGroup.open();

To reproduce:

1. Run that code in app.js 2. Click on the "more" tab and open one of the windows 3. Click on the button from the window 4. Go back to the beginning with the back button 5. That's it, an icon will be missing.

Note:

If you're two windows deep or more and go back with the back button, you'll see this behavior, but if you press the tab itself, it will go back and everything will be as it should. This bug only happens with the back button.

Comments

  1. Neeraj Gupta 2012-07-30

    A good example of a bad bug. This bug has no environment information whatsoever. Please provide the complete environment information and then reopen the bug.
  2. Pedro Enrique 2012-08-25

    Updated environment field
  3. jithinpv 2013-05-03

    issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0

JSON Source