Smrdis Posted January 7, 2015 Share Posted January 7, 2015 Updated Phaser from 2.0 to 2.2.2. Phaser.ScaleManager.SHOW_ALL behavior has changed. Red frame - game area, black frame - browser window. What wrong? Link to comment Share on other sites More sharing options...
Partsu Posted January 9, 2015 Share Posted January 9, 2015 This can apparently happen when the game canvas is inside another element, div for example. To avoid it you can set the canvas to the body giving the element name '':var game = new Phaser.Game(800, 600, Phaser.AUTO, '');Saddly, this is not enough to solve my problems as I need to have the canvas inside other elements on the page. Link to comment Share on other sites More sharing options...
horkoda Posted January 9, 2015 Share Posted January 9, 2015 This issue might be related: https://github.com/photonstorm/phaser/issues/1422 Lypzis 1 Link to comment Share on other sites More sharing options...
seejay92 Posted January 27, 2015 Share Posted January 27, 2015 Hi guys, I have had the same problem as you with this issue, since upgrading to 2.2.2. After alot of headbanging (as I needed to keep the parent container too) I've finally found the change needed to make it work. On your boot state, add the following line so the game knows to use the bottom of your screen as a contraint:-game.scale.windowConstraints.bottom = "visual";Hope this helps! Cameron eddieone 1 Link to comment Share on other sites More sharing options...
horror812 Posted January 31, 2015 Share Posted January 31, 2015 I have this problem, and I could not find a solution in this thread.Where was a working example?hope Link to comment Share on other sites More sharing options...
Recommended Posts