Make template width adjust to it text

Hello!

I have a Toolbar like at this snippet: https://snippet.webix.com/tmj587vk

And I want to make the width of the template “Company Code” and “User Name” fit to the text in it.

I have tried autowidth but doesn’t work.

Does anyone know how can I do that?

Hey @rogerzanelato, template doesn’t have the autowidth property unfortunately, only the autoheight. Intead of a template I’d like to suggest you use a label instead, which does have the autowidth property which you can use:
https://snippet.webix.com/j8yceoyf.

Please note that you if need to adjust the font size you can do so via CSS.