blockly > ScrollbarPair > resizeView
ScrollbarPair.resizeView() method
Recalculates the scrollbars' locations on the screen and path length. This should be called when the layout or size of the window has changed.
Signature:
resizeView(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