GUVNOR-2122: Add support for dynamically resizable Canvas.

(cherry picked from commit a6138e7128e837bf08e1db10942d95ab0c18db11)