Stay organized with collections
Save and categorize content based on your preferences.
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `setResizesEnabled` method controls whether a Blockly workspace automatically resizes."],["When enabled, the workspace dynamically adjusts its size; when disabled, resizing is suspended until re-enabled."],["Disabling resizes during batch operations can improve performance by preventing unnecessary recalculations."]]],[]]