Is it possible let the auto-resize the window?

Hi my old friends,
I face a problem as following :
I use the method attachURL() to attach URL via AJAX. I don’t want to there’re scrollbar or unused space in the window .So i wonder whether there’s a way to auto-resize the window whose content is uploaded via AJAX .

For the dynamic content , can window resize itself ?

Many thanks for your great help .

Hi,

there is auto-resize feature in window. You may change window size by setDimension method:

win.setDimension(width,height);

dhtmlxWindows/samples/03_settings/02_dimension.html

window fires onContentLoaded event when content is loaded:

win.attachEvent(“onContentLoaded”,function(){
/your code here/
});