Documentation

adjust

adjusts the component to the size of the parent HTML container

void adjust();

See also

Example

dtable = webix.ui({
    view:"datatable",
    ...
})
 
dtable.adjust();

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 widht and height settings, you need to use the resize method.

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