Search
Diagram.resizeToFitItems Method
See Also
 






Resizes the document scrollable area so that it fits all diagram items.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function resizeToFitItems ([margin, [onlyVisible, [repaintBounds]]])

 Parameters

margin
Optional.

onlyVisible
Optional.

Boolean. Specifies whether only visible items should be considered.

repaintBounds
Optional.

Boolean. Specifies whether to consider the items' repaint bounds.

 See Also