The DHTMLX library provides a helper that changes the width and height of the page content based on the window size.
To create a responsive web page that will be easily adapted to different dimensions of a browser window, make use of the dhx.resizeHandler helper:
dhx.resizeHandler(container, function (width, height) {
// some logic here
});
Related sample: Helpers. Resizer. Initialization
The helper takes two parameters: