only resize canvas if necessary
only resize canvas if necessary

Resizing when the canvas wasn’t displayed caused lots of exceptions.

alex1818/opencut,sir-buckyball/opencut,alex1818/opencut,alex1818/opencut,sir-buckyball/opencut,sir-buckyball/opencut