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?

Tagged:

Comments

  • edited August 2019

    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.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion