blockly > Scrollbar > resizeViewVertical

Scrollbar.resizeViewVertical() method

Recalculate a vertical scrollbar's location on the screen and path length. This should be called when the layout or size of the window has changed.

Signature:

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