DHTMLX Docs & Samples Explorer

setViewport(x, y, width, height, parentObj)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxwindows.js

sets user-defined viewport if enableAutoViewport(false)

  • x - top-left viewport corner's X-coordinate
  • y - top-left viewport corner's Y-coordinate
  • width - viewport's width
  • height - viewport's height
  • parentObj - create inside of parentObj object
    dhxWins.setViewport(x, y, width, height, parentObj);