blockly > Scrollbar > resizeContentHorizontal

Scrollbar.resizeContentHorizontal() method

Recalculate a horizontal scrollbar's location within its path and length. This should be called when the contents of the workspace have changed.

Signature:

resizeContentHorizontal(hostMetrics: Metrics): void;

Parameters

Parameter Type Description
hostMetrics Metrics A data structure describing all the required dimensions, possibly fetched from the host object.

Returns:

void