ui.button autowidth

without setting fixed width value.

Buttons cannot be adjusted to their context, yet they can be sized relative to other elements in layout (like any other Webix view) with the help of a gravity property.

http://webix.com/snippet/81a47bb9

That’s sad. Just figured out you can’t really dynamically fill a toolbar or a container in a scrollview with buttons. Since you do not know the width in advance the scrollview simply won’t work.
Is there any possiblity to adjust buttons to their content? Or is there an alternative component to buttons?

We are know about this limitation, and has some plans for next versions, unfortunately there is no good solution for now.

If this requirement is critical - you can use native HTML inputs, they can be styled to mimic webix buttons
http://webix.com/snippet/a6317cc5

Hell maksim,

thanks for your answer. Well it is critical in the way, that I want to implement sort of a “Breadcrumb”. As soon as there too many breadcrumbs to display in the toolbar I want to display only the last and enable the user to scroll using back and forward buttons. Similar to the file browsers on Linux Desktops.

Greetings,
gio