Html5 canvas in div problem

Hi guys,
I create canvas in div for web game layout:

When switch other tab → Click “Restore Down” button to resize browser window and switch back to game tab → resize browser window.
Problem is: The canvas is hiding from browser but I still can click to sprite on canvas.
It back to normal when switch other and return game tab.

This problem happen when set “renderMode: 1” and canvas wrapped by custom div.

Before switch tab:


Problem after switch tab and resize

Sample test: sample_test.zip (46.4 KB)
Any help I appreciate that!