Skip to main content

Home > blockly > IPositionable > position

IPositionable.position() method

Positions the element. Called when the window is resized.

Signature:

position(metrics: UiMetrics, savedPositions: Rect[]): void;

Parameters

ParameterTypeDescription
metricsUiMetricsThe workspace metrics.
savedPositionsRect[]List of rectangles that are already on the workspace.

Returns:

void