Skip to main content

Home > blockly > ScrollbarPair > resizeContent

ScrollbarPair.resizeContent() method

Recalculates the scrollbars' locations within their path and length. This should be called when the contents of the workspace have changed.

Signature:

resizeContent(hostMetrics: Metrics): void;

Parameters

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

Returns:

void