blockly > ScrollbarPair > resizeContent
ScrollbarPair.resizeContent() method
Recalculates the scrollbars' locations within their path and length. This should be called when the contents of the workspace have changed.
Signature:
resizeContent(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