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.
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.
Updated environment field
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