The resize event in `CanvasBackend` should be handled similarly to #13
The resize event in
CanvasBackendshould be handled similarly to #13