HTML5 Canvas fit parent div

I think you can do that in two ways:

You might want to keep track of window resize too (and potentially resize of the canvas parent) so you have to install a subscription for the resize event too in your Elm app.