Adapt the canvas size to take the whole browser size

Hi, what is the best way to have unconstrained canvas size so that it can always fit the window size ?

for instance from this

to this

but without distorsions.

I would say that I should resize the Canvas at runtime passing the DIV size, is that doable ?

It looks like when in preview mode on Chrome we do something really alike…

Ok I’ve just found that publishing for web-mobile does exactly this :rofl: