HTML5 Canvas fit parent div

Thanks, I opted for creating one port and subscribing to it. The port is triggered by the resize event of the window.

I also created a 2nd port that is called at init to ask for the dimensions.