Check documentation for the latest version of dhtmlxSuite setSizes DHTMLX Docs


changes object instance's size according to the outer container

void setSizes();


// 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"); = "250px"; = "400px";
// need to adjust accordion

Back to top