Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Arthur on Dec 24, 2008 19:31
open dhtmlx forum
dhtmlxWindow fullscreen

Hi again.


Could you show me how to create a window that covers the full page size and resizes as the browser is resized?



Thanks and Merry Christmas!
Arthur.
Answer posted by Support on Dec 29, 2008 17:19
To fill alll space of window you can use
 win.setToFullScreen(true);

The window will take all viewport ( which is all document.body by default )

There is no auto-size mode, but you can use
dhtmlxEvent(window,"resize",function(){
 win.setToFullScreen(false);
 win.setToFullScreen(true);
});
It will update window size after each resize of browser's window.