Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

Html5 canvas in div problem

$
0
0

@chanseo wrote:

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!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles