dhtmlxRibbon - entry width

Hey!

I’ve got a question regarding the width of an element in a dhtmlxRibbon.
It seems to me that the width of each element is determined automatically, depending on the size of the icon or text coming with it.

Is there a way to set the width by program code? What I like to do is setting the width of each of the three entries to the same size.

Guess that adding Spaces before and after the (Brief Description) might do it… but that would be my last resort.

Thanks!

Hi
If you mean width of blocks, use
myRibbon._items.item1.base.style.width = “150px”;
myRibbon._items.item2.base.style.width = “150px”;
Where “item1” and “item2” are IDs of the items
Result:

Cool, works perfectly well!

Just to be sure: there’s no way to initialize the width thru json while initializing the content of the ribbon?

Such opportunity is absent for today