blockly > Scrollbar > resizeContentVertical

Scrollbar.resizeContentVertical() method

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

Signature:

resizeContentVertical(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