Skip to main content

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

ParameterTypeDescription
sizeSizeSets the size of this bubble, including the border.
relayoutboolean(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