source: [view]
this._selectedPane.domNode.style.display = "none";
dojo.removeClass(this._selectedPane.tab, "mblTabButtonSelected");
this._selectedPane = tab.pane;
this._selectedPane.domNode.style.display = "";
dojo.addClass(tab, "mblTabButtonSelected");
if(dojo.isBB){
var ref = tab.nextSibling;
tab.parentNode.insertBefore(tab.parentNode.removeChild(tab), ref);
}
var view = dijit.getEnclosingWidget(this.domNode.parentNode);
if(this.fixedHeader){
// This widget stacks multiple panes and controls their visibility.
// Each pane cannot have its own scroll position status, because
// the entire widget scrolls.
// When in the fixedHeader mode, the user can always select a tab
// even when the current pane is scrolled down to the bottom.
// Even in such cases, the next page should be shown from the top.
if(view && view.scrollTo){
view.scrollTo({y:0});
}
}
view.flashScrollBar && view.flashScrollBar();