wtorek, 24 lipca 2012

Dojo Toolkit: Content of the first tab in dijit.layout.TabContainer is not displayed

dijit.layout.TabContainer
Dojo Toolkit 1.7.1

To fix this problem refresh the first tab by switching to the second and then to the first tab. See the code below:

var tabContainer = dijit.byId('tabContainerID'),
firstTab = dijit.byId('firstTabID'),
secondTab = dijit.byId('secondTabID');
 
tabContainer.selectChild(secondTab);
tabContainer.selectChild(firstTab);