blockly > Scrollbar > resizeViewHorizontal

Scrollbar.resizeViewHorizontal() method

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

Signature:

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