Padding Autoviewport

Hello, I’d like to pad the top of the autoviewport for displaying dhtmlx windows so that they don’t maximize on top of a customized header space, and still have them be able to resize when maximized to fit the rest of the browser as it resizes. What settings can I adjust to accomplish this effect?

You may set onMaximize event and change teh window position using setPosition method:

w1.attachEvent(“onMaximize”,function(){
var pos = w1.getPosition();
w1.setPosition(pos[0],pos[1]+50);
var size = w1.getDimension();
w1.setDimension(size[0],size[1]-50);
})