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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.