I have another problem with fullScreen mode in Chrome. I would like to resize a fullscreen-mode game and put it inside <div> tag so that I can add other html elements around it (in fact I want to use the same code of a fullscreen game for mobile and desktop version). To do that it is needed to change cr_sizeCanvas() function inside index.html in the next way for instance:
function cr_sizeCanvas()
{
var w = 300; //jQuery(window).width();
var h = 400; //jQuery(window).height();
...
}
Result:
1.) in Firefox all works fine - the game is correctly resized inside <div> tag of size 300x400
2.) in Chrome the game canvas is copied all around browser window (for instance if browser window is 900x800 then there are displayed 6 game canvases (3 columns x 2 rows) )