blockly > FlyoutMetricsManager > getScrollMetrics
Signature:
getScrollMetrics(opt_getWorkspaceCoordinates?: boolean, opt_viewMetrics?: ContainerRegion, opt_contentMetrics?: ContainerRegion): {
height: number;
width: number;
top: number;
left: number;
};
Parameters
Parameter |
Type |
Description |
opt_getWorkspaceCoordinates |
boolean |
(Optional) |
opt_viewMetrics |
ContainerRegion |
(Optional) |
opt_contentMetrics |
ContainerRegion |
(Optional) |
Returns:
{ height: number; width: number; top: number; left: number; }
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."],[[["`FlyoutMetricsManager.getScrollMetrics()` calculates and returns the scroll metrics of a flyout, including height, width, top, and left positions."],["This method optionally accepts workspace coordinates, view metrics, and content metrics to aid in the calculation."],["The returned object provides the dimensions and position of the flyout's scrollable area."]]],[]]