Bug fix for resizing.

Canvas height was being set to zero.