Fit to navigator
Select the [View] menu > [Fit to navigator] to toggle whether the canvas size adjusts with the size of the [Canvas] window.
When this is turned on, the entire canvas will be shown in the [Canvas] window. When the size of the [Canvas] window is adjusted, the canvas itself will change size accordingly.