How do I dynamically show and hide an entire TabContainer using DOJO?

后端 未结 9 952
轮回少年
轮回少年 2021-01-05 02:06

DOJO seems to have some quirks here. I specifically need to have the TabContainer hidden when the page loads, but then become visible after the user clicks a button. The fir

9条回答
  •  情深已故
    2021-01-05 03:08

    After you set display:block do this:

    dijit.byId('tabContainer').resize();
    

    dijit.layout widgets often don't lay themselves out properly if they are display:none (and sometimes even when visibility:hidden). You have to fiddle around in Firebug till you figure out what works!

提交回复
热议问题