Abstract ClassesFieldblockly.field.updatesize_On this pageHome > blockly > Field > updateSize_ Field.updateSize_() method Updates the size of the field based on the text. Signature: protected updateSize_(margin?: number): void; Parameters ParameterTypeDescriptionmarginnumber(Optional) margin to use when positioning the text element. Returns: void