how to set auto size to window?

Hi there,
I’m using dhtmlxwindow.
Everytime I attach object to the window i need that to size according to the content attached to it as div content grows.

window ‘width’ should change according to the content. how can i do this?

Thanks in advance

Hi,

there isn’t a built-in feature which allows to adjust window size to the size of its content.

But you may use setDimension to set the necessary size:

win.setDimension(width,height);