Skip to main content

Home > blockly > HorizontalFlyout > setMetrics_

HorizontalFlyout.setMetrics_() method

Sets the translation of the flyout to match the scrollbars.

Signature:

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

Parameters

ParameterTypeDescription
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