You mean while you are resizing? The canvas redraws ok for me in your test when you have finished resizing.
If you want to draw the canvas while resizing you will need to use event hooking.
If you want to draw the canvas while resizing you will need to use event hooking.