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

Back to top