private void shrinkTabBar() {
final Widget lastTab = getLastTab();
if ( lastTab instanceof TabLink ) {
maxDropdownTabLinkWidth = 0;
final TabLink tab = (TabLink) lastTab;
final DropdownTab dropdown = new DropdownTab( "More..." );
final Tab clonedTab = cloneTab( tab, false, true );
if ( clonedTab.isActive() ) {
dropdown.setText( "Active: " + clonedTab.asTabLink().getText() );
dropdown.addStyleName( Constants.ACTIVE );
}
dropdown.add( clonedTab );
tabPanel.add( dropdown );
tabPanel.remove( tab );
scheduleResize();
} else if ( lastTab instanceof DropdownTab ) {
final TabLink lastTabLink = (TabLink) getBeforeLastTab();
final Tab clonedTab = cloneTab( lastTabLink, false, true );
final DropdownTab dropdown = cloneDropdown( (DropdownTab) lastTab, -1 );
if ( clonedTab.isActive() ) {