Check documentation for the latest version of dhtmlxSuite setSizes DHTMLX Docs

setSizes

changes object instance's size according to the outer container

void setSizes();

Example

// an object that will be used as accordion's parent container
<div id="accObj" style="width: 300px; height: 500px;"> </div>
 
// init accordion:
var myAcc = new dhtmlXAccordion("accObj");
 
// when parent container's dimension is changed...
var parentObj = document.getElementById("accObj");
parentObj.style.width = "250px";
parentObj.style.height = "400px";
 
// ...you need to adjust accordion
myAcc.setSizes();

Back to top