blockly > Field > updateSize_
Field.updateSize_() method
Updates the size of the field based on the text.
Signature:
protected updateSize_(margin?: number): void;
Parameters
Parameter | Type | Description |
---|---|---|
margin | number | (Optional) margin to use when positioning the text element. |
Returns:
void