Check documentation for the latest version 6.0 of dhtmlxSuite setAutoSize DHTMLX Docs

setAutoSize

sets autosize for the layout

void setAutoSize(string hor,string ver);

Parameters

horstringcells that will be autosized horizontally
verstringcells that will be autosized vertically

Example

var myLayout = new dhtmlXLayoutObject(document.body, "5I");
// default autosize for "5I" pattern is ["a;d;e", "e"]
// redefine autosize
myLayout.setAutoSize("a;b;e", "a");

Details

list of available autosizes could be retrieved with listAutoSizes method

Back to top