Home > @jsplumbtoolkit/browser-ui > SurfaceRenderOptions > zoomToFitIfNecessary
SurfaceRenderOptions.zoomToFitIfNecessary property
If true, zoom the display so that the dataset is entirely visible after initialisation, but only adjust the zoom level if the dataset is not already visible at the default zoom level.
Signature:
zoomToFitIfNecessary?: boolean;