Check documentation for the latest version of dhtmlxSuite setAutoSize DHTMLX Docs

setAutoSize

sets autosize for the layout

void setAutoSize(string hor,string ver);
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