I'm currently starting a new project with cocos2d-html5. But I already stumbled upon quite a problem. If I load my game in a mobile browser and change the device orientation e.g. from portrait to landscape, the game canvas is no longer fully visible and doesn't fit the new screen dimensions.
For me there are two possible options:
- allow only one display orientation (is that possible in mobile browsers?)
- resize the game canvas and the cocos2d views after a resize/rotate event happened. Here I have no idea how to do that.
Did someone maybe fix that problem already? I tried google for quite some time but didn't find anything useful.