blockly > bubbles > Bubble > positionByRect
bubbles.Bubble.positionByRect() method
Positions the bubble "optimally" so that the most of it is visible and it does not overlap the rect (if provided).
Signature:
protected positionByRect(rect?: Rect): void;
Parameters
Parameter | Type | Description |
---|---|---|
rect | Rect | (Optional) |
Returns:
void