Jump to content

[Phaser-ce] white band in fullscreen mode


dude78
 Share

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!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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