Window shrinking on showing/hiding when using position:function(state)

http://webix.com/snippet/93d6b623

This can be seen my toggling the window by pressing the filter icon on the snippet. Every time the windows is shown/hidden, it loses 2px of width. If the browser is resized, the window is reset to the initial size.

If the state.height = state.maxHeight-50; line is removed, the size remains constant.

Hello,

Unfortunately, I cound not spot the problem (desktop FF, Edge, Chrome). Which browser/device are you using?

Using OS X 10.12.2. Bug happens in Chrome, Safari and Firefox.

Did you press the button several times?

Yep, I can confirm it.

The current logic presupposes that one should provide width and height simultaneously because changing either of these parameters within the position function triggers resizing. And during resizing the value is defined with respect to 1px padding from each side.

So I suggest you to maintain the constant 250px width within the position handler: http://webix.com/snippet/170ef502

Perfect, thank you.