Revert "No need to change the transform on resize"
Revert "No need to change the transform on resize"

This was totally wrong. Changing the canvas's dimensions resets its
transform (along with a bunch of other state).

This reverts commit 92fc987abb5f6d4342d9b734ab05a2f0d84d0f7e.

tmm1/stackprof,tmm1/stackprof,tmm1/stackprof,tmm1/stackprof