There could be a way to detect changes of `view.viewSize` in the code and handle those by resizing the canvas accordingly.