Search
ContainerNode.resizeToFitText Method
See Also
 






Makes the container node caption big enough to display its text without clipping.

Namespace: MindFusion.Diagramming
File: ContainerNode.js

 Syntax

JavaScript  Copy Code

function resizeToFitText (fit, [fixPosition, [foldBtnWidth]])

 Parameters

fit

FitSize. A member of the FitSize enumeration.

fixPosition
Optional.

Boolean. Fix the position of the container to the original location. The default is false.

foldBtnWidth
Optional.

Number. The width of the folder button, if it's not provided, the value from foldIconSize is used.

 Return Value

Boolean. true if the caption is resized successfully, or false otherwise.

 See Also