Skip to main content

Home > blockly > ScrollbarPair > resizeView

ScrollbarPair.resizeView() method

Recalculates the scrollbars' locations on the screen and path length. This should be called when the layout or size of the window has changed.

Signature:

resizeView(hostMetrics: Metrics): void;

Parameters

ParameterTypeDescription
hostMetricsMetricsA data structure describing all the required dimensions, possibly fetched from the host object.

Returns:

void