only resize canvas if necessary

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