Skip to main content

blockly > Flyout > setMetrics_

Flyout.setMetrics_() method

Sets the translation of the flyout to match the scrollbars.

Signature:

protected abstract setMetrics_(xyRatio: {
x?: number;
y?: number;
}): void;

Parameters

Parameter

Type

Description

xyRatio

{ x?: number; y?: number; }

Contains a y property which is a float between 0 and 1 specifying the degree of scrolling and a similar x property.

Returns:

void