Bug fix for resizing.

Canvas height was being set to 0 on window.resize()