Jump to content

2.3.0 screen scaling does not work?


Recommended Posts

when I was using 2.0.4 version


the screen resizing was good.. it responds to every screen size with proper scaling but when upgrading to 2.3.0


the screen resizing was not that efficient...

when I am on my browser  is just sets on full browser size


this is what i added on the index.html:

 <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width">

and this is on the Boot.js file:

this.input.maxPointers = 1;this.stage.disableVisibilityChange = false;this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.pageAlignHorizontally = true;this.scale.pageAlignVertically = true;this.stage.forcePortrait = true;this.scale.setScreenSize(true);    

What would I change so that is just changes to proper screen size

Link to comment
Share on other sites

  • 5 months later...

I hate to bump an old thread but I ran into the exact same problem - scaling is handled differently in older version of phaser. Anyone ever find a solution?


Edit: I haven't found a solution to scale fullscreen but I did manage to figure out the problem starts in phaser version 2.2.0 http://phaser.io/download/release/2.2.0


Edit2: I solved the problem. I had a div id="gameContainer  /div code in my game. When I removed that, scaling worked perfectly.

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...