blockly > VerticalFlyout > setMetrics_
VerticalFlyout.setMetrics_() method
Sets the translation of the flyout to match the scrollbars.
Signature:
protected 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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `VerticalFlyout.setMetrics_()` method adjusts the flyout's position based on the scrollbars' status."],["This adjustment is achieved using the `xyRatio` parameter, which represents the horizontal and vertical scroll positions as values between 0 and 1."],["The method is marked as `protected`, implying it is primarily for internal use within the `VerticalFlyout` class."]]],[]]