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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.