DHTMLX Docs & Samples Explorer

Index
dhtmlxwindows
API Methods

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

Required library edition:
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);