adjust

adjusts the component to the size of the parent HTML container

void adjust();

Example

$$("view").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:100px; height:200px;'></div>
webix.ui({ view:"tree", id:"mytree", container:"mybox"});
...
// after the container box is resized
document.getElementById('mybox').style.width = "200px"; 
$$('mytree').adjust(); // component needs adjusting to the new size
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix open source html5 framework and page of javascript kanban board product.