blockly > WorkspaceSvg > setResizesEnabled

WorkspaceSvg.setResizesEnabled() method

Update whether this workspace has resizes enabled. If enabled, workspace will resize when appropriate. If disabled, workspace will not resize until re-enabled. Use to avoid resizing during a batch operation, for performance.

Signature:

setResizesEnabled(enabled: boolean): void;

Parameters

Parameter Type Description
enabled boolean Whether resizes should be enabled.

Returns:

void