See the attached CanvasTest.qml. When clicking the button the canvas is supposed to be resized in both directions as height is bound to width. The canvas element is apparently resized but the canvasSize is seemingly not. See the screenshots for the effect. If you don't bind height to width but directly set it in the click handler instead this doesn't happen.