Min/Max Width problems

Hey guys,

I’ve tried to setup a window with a minimum and maximum width (http://webix.com/snippet/a54f02c5).
The problem here is, if I leave out the “maxWidth” property of the window, the window collapses to 300px. This shouldn’t be the case, as the “win_data” item is bigger than 300px.
Adding the “maxWidth” attribute to the window, the window expands to 500px, which should also not be the case, as the “win_data” item is smaller than that.

Am I missing something here? Maybe because of the filling of the win_data item after the initialization I’d need the call something like resize (tried that on the window, didn’t make much of a difference).

Thanks in advance.

This shouldn’t be the case, as the “win_data” item is bigger than 300px.

Content in the window doesn’t have a fixed width.
If you place some component with a fixed width, size will be applied correctly
http://webix.com/snippet/f83bbc33

You’re right, that would work. Nonetheless I need the window to be responsive, meaning the width of the window may vary between e.g. 100 and 1000px. If the content is bigger than 1000px it should not be displayed (be scrollable or whatever), if the content is in between the window should adjust to the content and not just take the maximum width.