Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Moi on Dec 02, 2009 09:34
open dhtmlx forum
Vertical Scrolling inside Tabs (v25_pro_91111)

I've a dhtmlxtabbar that function correctly.

I want to have scrollbars inside tab if the content is bigger than the first tab (for which i've defined a size).

Here's my init

    tabbar = new dhtmlXTabBar("a_tabbar","top");
    tabbar.setSkin('silver');
    tabbar.setSkinColors("#FFFFFF", "#FFFFFF");
    tabbar.setImagePath("/css/dhtmlxtabbar/");
    tabbar.setHrefMode("ajax-html");
    tabbar.enableForceHiding(true);
    tabbar.showInnerScroll(true);
    tabbar.loadXML("config.xml");

Everything loads ok

Here's the call

<div id="a_tabbar" style="overflow: auto;width:800px; height:200px;margin-left:auto;margin-right:auto;"></div>

So when the content of tab is bigger than 200px, i would have scrollbars, isn't it ?

Cheers.

Moi
Answer posted by Alex (support) on Dec 03, 2009 01:35

Hello,

try to call the showInnerScroll method after tabs are added:

tabbar.loadXML("config.xml",function(){

    tabbar.showInnerScroll(true);

});

Answer posted by Moi on Dec 03, 2009 02:49

It's great !!!!

Thank you.

Moi