DHTMLX Docs & Samples Explorer

keepInViewport(state)

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

keeps a window within the viewport

  • state - if true - window is not allowed to be placed outside the viewport
    dhxWins.window(id).keepInViewport(true/false);