blockly > WorkspaceSvg > resize
WorkspaceSvg.resize() method
Resize and reposition all of the workspace chrome (toolbox, trash, scrollbars etc.) This should be called when something changes that requires recalculating dimensions and positions of the trash, zoom, toolbox, etc. (e.g. window resize).
Signature:
resize(): void;
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `resize` method is used to adjust the size and placement of workspace elements like the toolbox, trash, and scrollbars."],["It's called when workspace dimensions change, such as during a window resize, requiring recalculation of these elements' positions."],["This method belongs to the `WorkspaceSvg` class and has a return type of `void`, meaning it doesn't return any specific value."]]],[]]