Gets or sets a value indicating whether virtual scroll mode is enabled.
Namespace: MindFusion.Diagramming
File: DiagramView.js
JavaScript Copy Code |
---|
get virtualScroll() {} |
Boolean
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.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |