haden Posted March 27, 2014 Share Posted March 27, 2014 Looking at the code of ScaleManager, there is this attribute "_startHeight" that is initialised at 0 and never changed after that, still ScaleManager.setScreenSize() use it like followsif (force || window.innerHeight > this._startHeight || this._iterations < 0){ // Set minimum height of content to new window height document.documentElement['style'].minHeight = window.innerHeight + 'px';...Looking at older versions of Phaser (specifically 0.83TS), StageScaleMode.refresh() used to actually update this attribute like this:if (this.game.device.iPad == false && this.game.device.webApp == false && this.game.device.desktop == false){ document.documentElement['style'].minHeight = '2000px'; this._startHeight = window.innerHeight;...I don't know what's the usefulness of _startHeight, but it seemed more like a bug that it wasn't actually being updated at all. am I missing something ? Link to comment Share on other sites More sharing options...
Recommended Posts