Error with overlapping transparent images on Chrome in fullscreen - becoming too white

Hi,

I have been struggeling a little today with some weird bug with transparency on Chrome when requesting fullscreen in the browser.

I finally figured it out, quite simple really but still not obvious to me since it was working fine in firefox.

However for anyone else facing this problem (and maybe something for @nantas or someone else to add in the next release) here is the simple fix…

Go to the generated css file referenced in the html file. Under the body part you can see “background-color: #333;”. Since i was requesting fullscreen on the Cocos2dGameContainer object, Chrome for some reason does not keep this background color in fullscreen (though firefox does). It simply reverts to white which in my case looked very weird and different than when not in fullscreen.

The simple fix was simply to copy the background color to the #Cocos2dGameContainer part of the css also so it was present both places.

Hope this saves someone else a couple of hours of confusion :slight_smile: