DHTMLX Docs & Samples Explorer

setAutoSize(hor, ver)

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

sets autosize for the layout

  • hor - cells that will be autosized horizontally
  • ver - cells that will be autosized vertically
    var dhxLayout = new dhtmlXLayoutObject(document.body, "5I");
    // default autosize for "5I" pattern is ["a;d;e", "e"]
    // redefine autosize
    dhxLayout.setAutoSize("a;b;e", "a");

list of available autosizes could be retrieved with listAutoSizes() method