Resize Webix layout when window resizes

Hello, I’m trying to get a Webix layout to resize automatically when its container resizes. Please see code below that does not currently work. How can I adjust it to get the layout to resize vertically when the window resizes?

`

Designer
html, body { height: 100%; width: 100%; margin: 0; padding: 0; min-height: 100%; } #mainDiv { margin: 0; height: 100vh; width: 100%; padding: 0; overflow: hidden; background-color: powderblue; } `

Hello @velocitytoo ,

Is uncommenting the code below the only way to get the ‘layout’ to resize with the window?

Yes, it is the only correct way in case of using container for the Webix UI. It provides the strict (initial) size and we do not add a default handler which triggers the UI resize. But if Webix layout is built without a specific container (in such case, UI will be initialized directly on body), it is adjusted automatically to the screen width.