Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by chengshwu on Jun 08, 2009 21:39
open dhtmlx forum
how to attach tabbar to bottom in layout "1C"

Dears:
when I using layout "1C",I want to attach a tabbar on the bottom of the cell a,how to do that?

var dhxLayout = new dhtmlXLayoutObject(document.body, "1C");
var dhxTabbar = dhxLayout.cells("a").attachTabbar();

in the above script,the tabbar on the top of the layout
and the script
dhxTabbar.setAlign("bottom");
does not work?

how to do that??
thanks a lot
Answer posted by Alex (support) on Jun 09, 2009 00:39

Hello,

attachTabbar() allos to attach tabbar with top align only.

What we can recommend.... You can create addition page with bottom tabbar (the tabbar should occupy the full screen).

And that load this page to the layout iframe:

dhxLayout.cells("a").attachURL("tabbar.php"); 

instead of var dhxTabbar = dhxLayout.cells("a").attachTabbar();

  

Answer posted by chengshwu on Jun 09, 2009 01:58
in actually ,the main problem is how to make the tabbar occupy the fully screen!
Answer posted by Alex (support) on Jun 09, 2009 02:11

Just set style="width:100%; height:100%;" for the tabbar container and margin=0 for the body:

<body style="margin:0">

  <div style="width:100%; height:100%;" id="tabbar_parent"></div>

</body>