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 carousel's parent container
<div id="carouselObj" style="width: 300px; height: 500px;"> </div>
 
// init accordion:
var myCarousel = new dhtmlXCarousel("carouselObj");
 
// when parent container's dimension is changed...
var parentObj = document.getElementById("carouselObj");
parentObj.style.width = "250px";
parentObj.style.height = "400px";
 
// ...you need to adjust carousel
myCarousel.setSizes();

Back to top