Hi, I’m developing a game using cocos2d-html5 v2.2 using cc.RESOLUTION_POLICY.SHOW_ALL as resolution policy and it works as expected (the canvas occupies the whole space available, if the window is resized or if I wrap the canvas element around a div it resizes to adjust to that size).
But here’s my problem: I’ve just updated to the latest git-hub version and the behaviour has change wildly: the canvas element now no longer occupies the whole available space, but rather only a limited size and it’s only centered horizontally on the screen, but not vertically.
Is there a way I can still get the old behaviour?
edit: It’s an “old” thred so I don’t quite remember. But I think the major problem was that my
<canvas> element was inside a
<div>, and that prevented it from occupying the whole