Jump to content

ScaleManager issue


Recommended Posts

in previous version(2.0.7) i'm using this code to know when the screen was changing

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.hasResized.add(this.gameResized, this);

and resized callback function to resize overlaying game UI

        gameResized: function (width, height) {            this.user_control.style.width = width + 'px';            this.user_control.style.height = height + 'px';        },

in current version i change hasResized events 

this.scale.setResizeCallback(this.gameResized, this);

but the width and height doesn't reflect the current stage properly and sometimes its not called, this is causing UI did not placed in correct position.


any idea how to solve this problem?


Link to comment
Share on other sites

  • 3 months later...

  • Recently Browsing   0 members

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