Skip to content

adjust

adjusts the component to the size of the parent HTML container

function adjust(): void
grid.adjust();

also check the next samples:

The method changes the width and height of the component to fit the parent HTML container.

If you want to resize the component in the layout according to its width and height settings, you need to use the resize method.

<div id='mybox' style='width:100px; height:200px;'></div>
webix.grid({ id:"mygrid", container:"mybox"});
...
// after the container box is resized
document.getElementById('mybox').style.width = "200px";
mygrid.adjust(); // component needs adjusting to the new size