Jump to content

Game gets shifted when turning to landscape mode


Ninjadoodle
 Share

Recommended Posts

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!

Link to comment
Share on other sites

  • 3 weeks later...

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 :)

Link to comment
Share on other sites

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;
    }
});

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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