Aymeric Posted April 13, 2015 Share Posted April 13, 2015 Hey guys,My game is landscape only, on Android no issue, since there isn't navigation bar appearing/disappearing, but on iOS that's an other story. In an update state, I output the game.width & game.height and they have always the same value if the navigation bar is here or not. Is there any way inside Phaser to manage this or should I use an external lib like Scream? Thanks! Link to comment Share on other sites More sharing options...
Tom Atom Posted April 14, 2015 Share Posted April 14, 2015 Hi, what iOS version are you using? As far as I remember you cannot hide navigation bar in iOS 8... game.width and game.height probably will return always the same numbers as these are your game resolution. It is then scaled to device screen. To get screen space resolution try: window.innerWidth and window.innerHeight. Link to comment Share on other sites More sharing options...
Aymeric Posted April 15, 2015 Author Share Posted April 15, 2015 iOS 8, I think it's an issue on Phaser side: https://github.com/photonstorm/phaser/issues/1743 Link to comment Share on other sites More sharing options...
Recommended Posts