Skip to main content

Home > blockly > blockRendering > RenderInfo > addAlignmentPadding_

blockRendering.RenderInfo.addAlignmentPadding_() method

Modify the given row to add the given amount of padding around its fields. The exact location of the padding is based on the alignment property of the last input in the field.

Signature:

protected addAlignmentPadding_(row: Row, missingSpace: number): void;

Parameters

ParameterTypeDescription
rowRowThe row to add padding to.
missingSpacenumberHow much padding to add.

Returns:

void