adjustItem

adjust width/height of a specified block to its content

void adjustItem(string|number id,string mode);
idstring|numberblock ID
modestringproperty to adjust ("width", or "height")

Example

$$("diagram").adjustItem("root", "width");

Related samples

Details

If the mode parameter is not specified, the height of a specified block will be adjusted.

Back to top