Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > blockRendering > RenderInfo > getSpacerRowWidth_
Méthode blockRendering.RenderInfo.getSpacerRowWidth_()
Calculez la largeur d'une ligne d'espace vide.
Signature :
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
Paramètres
Paramètre |
Type |
Description |
_prev |
Ligne |
La ligne avant l'espace vide. |
_next |
Ligne |
Ligne après l'espace vide. |
Renvoie :
Nombre
Largeur souhaitée de la ligne d'espace entre ces deux lignes.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[],["The `getSpacerRowWidth_` method, part of the `RenderInfo` class, calculates the width required for a spacer row. It accepts two `Row` objects, `_prev` and `_next`, representing the rows immediately before and after the spacer. The method determines and returns a numerical value representing the optimal width for the spacer row positioned between these two input rows. The output of this function is the calculated width.\n"]]