Ninjadoodle Posted August 10, 2017 Share Posted August 10, 2017 Hi @enpu I've posted a bug about this on Github but just wounding if you've had a change to have a look into this When I turn my game into landscape mode on iOS, the who game gets shifted up, some of it hiding under the top bar. Also, is there a way to get the game to switch to fullscreen on changing to landscape, like in the example below ... http://ninjadoodle.com/levels/level-12/ I made this example in Construct 3 and just wondering if this fullscreen switch could be done in Panda? Thanks heaps! Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 25, 2017 Author Share Posted August 25, 2017 Hi @enpu Sorry to bump this, but I was just wondering whether you've had a chance to see if this is possible to fix. I've been trying to make a template for my levels which works in both portrait and landscape, but I can't get it to work with the current issue. Thanks heaps in advance for any info Quote Link to comment Share on other sites More sharing options...
enpu Posted August 25, 2017 Share Posted August 25, 2017 I did take a look at this, and it seems to be a bit tricky one. Here is temporary fix that you can try, until i figure out better one: game.System.inject({ _updateWindowSize: function() { this.super(); if (game.device.iPhone && window.innerWidth > window.innerHeight && window.innerHeight === window.screen.width) { this._windowHeight++; } if (game.device.iPhone) document.body.scrollTop = 0; } }); Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 26, 2017 Author Share Posted August 26, 2017 Hi @enpu Thanks heaps for that! That's a million times better than before You can still break it by sliding up when it's in fullscreen landscape, but that might just be a browser problem and I'm not sure if it can be fixed. Thanks again for the workaround fix! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.