Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > RenderInfo > getInRowSpacing_
blockRendering.RenderInfo.getInRowSpacing_() method
Calculate the width of a spacer element in a row based on the previous and next elements in that row. For instance, extra padding is added between two editable fields.
Signature:
protected getInRowSpacing_(prev: Measurable | null, next: Measurable | null): number;
Parameters
Parameter |
Type |
Description |
prev |
Measurable | null |
The element before the spacer. |
next |
Measurable | null |
The element after the spacer. |
Returns:
number
The size of the spacing between the two elements.
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 `blockRendering.RenderInfo.getInRowSpacing_()` method calculates the spacing between elements within a row of a block."],["This method considers the preceding and succeeding elements (`prev`, `next`) to determine the appropriate spacing, such as adding extra padding between editable fields."],["The resulting spacing size is returned as a number."]]],[]]