adjust

adjusts the component to the size of the parent HTML container

void adjust();

Example

$$("filemanager").adjust();

Related samples

Details

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:400px; height:500px;'></div>
webix.ui({
    view:"filemanager", id:"files", container:"mybox"
});
// ...
// after the container box is resized
document.getElementById('mybox').style.width = "900px";
$$('files').adjust(); // component needs adjusting to the new size
See also
Back to top