Home > blockly > bubbles > Bubble > setSize
bubbles.Bubble.setSize() method
Sets the size of this bubble, including the border.
Signature:
protected setSize(size: Size, relayout?: boolean): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| size | Size | Sets the size of this bubble, including the border. |
| relayout | boolean | (Optional) If true, reposition the bubble from scratch so that it is optimally visible. If false, reposition it so it maintains the same position relative to the anchor. |
Returns:
void