Search
HTML Layout

DiagramView implements scrolling of diagram's canvas internally and fills all space available to the component. As such, CSS width and height attributes are both set to 100%, filling all space provided by parent HTML element (such as div). If you need to display fixed-size diagrams, e.g. in sidebars or in tooltip overlays, assign the size to parent div's width and height attributes. If you prefer the diagram view to grow dynamically to fill browser's window, we recommend using a CSS grid, with chart placed in fr-unit tracks, with additional constraints applied using minmax CSS function. Latter approach is shown in sample projects from library's distribution.