Stay organized with collections Save and categorize content based on your preferences.

blockly > IMetricsManager > getFlyoutMetrics

IMetricsManager.getFlyoutMetrics() method

Gets the width and the height of the flyout on the workspace in pixel coordinates. Returns 0 for the width and height if the workspace has a category toolbox instead of a simple toolbox.

Signature:

getFlyoutMetrics(opt_own?: boolean): ToolboxMetrics;

Parameters

Parameter Type Description
opt_own boolean (Optional) Whether to only return the workspace's own flyout.

Returns:

ToolboxMetrics

The width and height of the flyout.