Zero-width collapsed sidebar issue

Hello guys,
I’m playing with sidebar control and it’s seems to be a bug in it.
My aim is to have a zero-width sidebar while it is in collapsed state, so I set collapsedWidth property to 0. But it does not work as expected.

I have tried different values for the collapsedWidth property:

  1. If set to 0 or -2, the sidebar shown as expanded in collapsed state.
  2. If set to -1, the sidebar shown as collapsed, but toggle works only once.
  3. With other negative values it seems to work correct.

A snipped to illustrate the problem:

https://snippet.webix.com/0nwznu4y

Hello,

Normally, Webix supports non-negative number as width and height values.

Moreover, width:0 (or height), which is actually set in the background, results in a non-sized state for the widget and it tries to occupate all the available space.

So, if you want to hide Sidebar completely, please use the .show()/.hide() API: https://snippet.webix.com/z3h0b1i1