dude78

[Phaser-ce] white band in fullscreen mode

Recommended Posts

Hello all.

I have a problem with Chrome on Android.

When I switch to a fullscreen I can get different results:

First one (all is ok):

First_result.png.5b28decc1c0dd01d725bea157c472351.png

 

The Second one (a white band at the bottom):

ProblemFullScr.png.bc53da25062b8cf980c1efcbc9d36297.png

 

The third one when I leave fullscreen mode (white band at the top):

Problem_edited.png.55100ab9030da3230b66facf254e60a6.png

 

I use the following code:

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.scale.fullScreenScaleMode = Phaser.ScaleManager.SHOW_ALL;
this.scale.pageAlignHorizontally = true;
this.scale.pageAlignVertically = true;
this.scale.forceOrientation(true, false);
this.scale.enterIncorrectOrientation.add(this.enterIncorrectOrientation, this);
this.scale.leaveIncorrectOrientation.add(this.leaveIncorrectOrientation, this);

 

I get such results only in Chrome on Android.

Does anybody know why this occurs and how to solve the problem?

Any tips would be appreciated!

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.