view resizes to fit window

adding onresize="setCanvasSize" to body appears to work where other
solutions do not