changes object instance's size according to the outer container
// 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