Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bob on May 29, 2008 11:47
open dhtmlx forum
dhtmlxwindow absolute / relative position

can the viewport position be relative? how do i make it adjust for different resolutions?
Answer posted by Support on May 30, 2008 02:46
You can
a) assign vieport to whole body, so it will automatically adjust to  used resolution
    dhxWins.enableAutoViewport(true);
b) you can use any object on page, as base for you viewport
    dhxWins.setViewport(0, 0, parentObj.offsetWidth, parentObj.offsetHeight, parentObj.id);