Search
DiagramView.virtualScroll Property
See Also
 





Gets or sets a value indicating whether virtual scroll mode is enabled.

Namespace: MindFusion.Diagramming
Package: DiagramView.js

 Syntax

JavaScript  Copy Code

get virtualScroll() {}
set virtualScroll(value) {}

 Property Value

Boolean

true if virtual scroll is enabled, or false otherwise. The default value is true.

 Remarks

If this mode is enabled, the canvas stays as big as its containing div, and its content is drawn with a translation bound to the div's scrollbar positions. This allow displaying large diagrams in browsers and on mobile devices where the size of HTML canvas elements is limited.

Virtual scroll mode requires browser support for grid layout. If you need to use it in older browsers, set CompatConfig.gridLayout = false to use absolute positioning instead.

 See Also