Check documentation for the latest version of dhtmlxSuite Configuring Ribbon DHTMLX Docs

Configuring Ribbon

Setting Ribbon's Size

There's a possibility to set the size of the tabbar depending on its parent's size:

var myRibbon = new dhtmlXRibbon("parentId");
 
// if you change parent's size
document.getElementById("parentId").style.width = "800px";
document.getElementById("parentId").style.height = "600px";
 
// tabbar needs to be adjusted
myRibbon.setSizes();

If the ribbon is attached to another DHTMLX component, the method is called automatically.

Back to top