Set canvas size explicitly.

Canvases behave like images. http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#attr-canvas-width