Reputation: 119
We use the Dojo Tab Control. We fill this out with a HashMap, the title and the content. Now we want to hide and unhide the tabs with a button. If the control has been loaded before, does the presentation. If the control was hidden from the beginning, the control will not display correctly. The tabs with the title cut off and therefore can not be clicked. The display of the tabs we solve with CSJS, fadeOut and fadeIn. The area with the tabs has been hidden with 'display: none'. Why?
Upvotes: 0
Views: 54
Reputation: 2635
The tabcontainer can only fully initialize if it's visible in the DOM. You can work around this:
Hide the tabcontainer after the tabcontainer is fully initialized. You could do this setting display:none
on the tabcontainer inside a dojo/ready function.
Upvotes: 2