blockly > blockRendering > RenderInfo > computeBounds_
blockRendering.RenderInfo.computeBounds_() method
Figure out where the right edge of the block and right edge of statement inputs should be placed.
Signature:
protected computeBounds_(): 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 `computeBounds_` method calculates and sets the right-side boundaries for a rendered block, including its statement inputs."],["This is an internal method (protected) within the `RenderInfo` class, used for positioning elements during block rendering."],["The method focuses on determining the horizontal extent of the block's visual representation, ensuring it accommodates all its components."],["It updates the rendering information stored in the `RenderInfo` object but doesn't return any specific value."]]],[]]