dandice Posted September 27, 2014 Share Posted September 27, 2014 in previous version(2.0.7) i'm using this code to know when the screen was changingthis.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 More sharing options...
love_phaser Posted January 8, 2015 Share Posted January 8, 2015 Hi, same issue here. I've also tried to install the last version of Phaser (2.2.2) and the width and height doesn't scale the same as the function hasResized did in the previous version. Is this bug ? or we just use it wrong ? Best,love_phaser Link to comment Share on other sites More sharing options...
Recommended Posts