Stay organized with collections
Save and categorize content based on your preferences.
blockly > geras > RenderInfo > getSpacerRowHeight_
geras.RenderInfo.getSpacerRowHeight_() method
Signature:
getSpacerRowHeight_(prev: Row, next: Row): number;
Parameters
Parameter |
Type |
Description |
prev |
Row |
|
next |
Row |
|
Returns:
number
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."],[[["\u003cp\u003eThe \u003ccode\u003egetSpacerRowHeight_\u003c/code\u003e method calculates the height of the spacer row between two given rows (prev and next) within a block.\u003c/p\u003e\n"],["\u003cp\u003eIt's a member of the \u003ccode\u003egeras.RenderInfo\u003c/code\u003e class used for rendering blocks in the Blockly library.\u003c/p\u003e\n"],["\u003cp\u003eThe method takes two \u003ccode\u003eRow\u003c/code\u003e objects as input, representing the preceding and succeeding rows of the spacer.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a numerical value indicating the calculated height of the spacer row.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [geras](./blockly.geras_namespace.md) \\\u003e [RenderInfo](./blockly.geras_namespace.renderinfo_class.md) \\\u003e [getSpacerRowHeight_](./blockly.geras_namespace.renderinfo_class.getspacerrowheight__1_method.md)\n\ngeras.RenderInfo.getSpacerRowHeight_() method\n---------------------------------------------\n\n**Signature:** \n\n getSpacerRowHeight_(prev: Row, next: Row): number;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|--------------------------------------------------------|-------------|\n| prev | [Row](./blockly.blockrendering_namespace.row_class.md) | |\n| next | [Row](./blockly.blockrendering_namespace.row_class.md) | |\n\n**Returns:**\n\nnumber"]]