enable canvas resizing.

Canvas is rezied to page size when the page is loaded.