When hidding all elements on a toolbar, it behave like a “layout” component. And it’s height isn’t a toolbar height anymore.
https://webix.com/snippet/b4039718
The expected behavior is to have the toolbar keep it normal toolbar height even if no elements are visible inside.
A workaround is to have an empty label inside
It’s the expected behavior of sizing logic:
- toolbar is just a container without predefined size
- buttons have the default height, so the toolbar will adjust to them
- after hiding a button (buttons) sizes will be recalculated. Since the toolbar has nothing to adjust to, it will act like any other layout cell, i.e. it will take the available size.