Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anthony on Apr 04, 2008 12:59
open dhtmlx forum
Tab Resizing

Is there anyway to have the tabs all be different sizes without doing them all manually. Like have it pick a size for each tab based on what is underneath that tab?
Answer posted by Support on Apr 07, 2008 05:25
If you mean tab caption - you can define its size as * , in result it will be calculated based on caption length
    tabbar.addTab(1,"some","*");
If you mean size of tab content area - you can enable mode when tabbar resizes automatically according to the tab content
    tabbar.enableAutoSize(true,true);
Answer posted by bj on Apr 20, 2008 14:52
This is actually not working for us for the content area:
tabbar.enableAutoSize(true,true);

It will auto size as far as width and height go, but if one tab has a very high height, and the next a very small height, the border/container does not shrink it stays at the size of the high hight tab.


Answer posted by Anthony on Apr 20, 2008 16:05
Yes that is the same problem I have.
Answer posted by Support on Apr 21, 2008 03:15
This is default behavior, tabbar resize itself to biggest content ( not to the content of actual tab )

Please check next thread for alternative solution
    http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=2148&ssr=yes&s=adjustSize