NetDiagram Programmer's Guide
Diagram.setVirtualScroll Method
See Also

Enables or disables virtual scroll mode.

Namespace: MindFusion.Diagramming
Package: Diagram.js


JavaScript  Copy Code

function setVirtualScroll (value)


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


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

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
CompatConfig.gridLayout Field