This content has been marked as final. Show 3 replies
I think that is a bug but I am not 100% sure...anyhow there is a pretty easy workaround by getTabAt(0).selected good luck!
It helped a lot!
I still get some rollover issues once the tab is selected. In the simple application, it have the correct behaviour, but in my real application, the code-selected Tab shows a strange rollover style. But if I click-select the tabs, they're ok.
I'll have to play with my skins ans styles declarations ...
This is a bug and I just checked the source.
It seems that selectedIndex remains as 0 when you remove all. When you addChild again, it checks if the index of added children == selectedIndex and if yes, it do not focus. The patch should affect removeAllChildren and removeChild, by setting -1 to selectedIndex when numChidren reaches 0.
Where do I report this bug? It's the second one I found....