Resize WebGL Canvas

Hi everyone,
to my surprise there seems to be nothing on this topic.

What I want is to have my WebGL instance resize when its containing div container changes size. Right now the game window’s size gets set in the beginning and does not adjust to the container from then on. Do I have to call a special Unity function or am I missing something crucial here?

Best regards,

Were you able to achieve this? I too am looking for the same.