Hi, I was trying to learn and use JS for a simple game and couldn’t resolve this issue.
Now, the scene looks as it should on landscape mode (iOS Simulator (and real device)):
When I change the orientation to portrait in runtime, it becomes like this:
resolution policy and other initialization is as following:
cc.view.enableRetina(false);
cc.view.adjustViewPort(true);
cc.view.setDesignResolutionSize(480, 320, cc.ResolutionPolicy.SHOW_ALL);
cc.view.resizeWithBrowserSize(true);
With these settings, on portrait mode, I’d expect no black bar on the left hand side and the scene should be centered on the screen, probably something like this:
The strange thing is; normally, I change the colors of the touched squares. It works correctly on landscape mode but in portrait mode, nothing happens when I touch the squares themselves, however they change color when I touch on the empty space above the drawn area.
How can I correct this issue and how can I change the resolution policy on runtime when the orientation changes?
It seems like I’m missing something very simple but couldn’t find a solution for Cocos2d-JS (examples are usually about other platforms). I’ll be really happy If someone can direct me to correct path.
Sorry for the long post, I’d also attach a potato but it is long enough as it is 



