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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of context menu product.