-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXPAND falls back to config width and height when changing scenes #6767
Comments
I got this error message about rendering
Only when I open console (in chrome browser, win10, phaser3.80.0 and phaser3.80.1). It works fine if I do not open console. FIT scale mode does not have this error message when console opened. |
I try to log the camera width and height.
|
I'm experiencing the same issue with Phaser 3.80.1, but only when I have it inside an iFrame that has width or height to 0px. https://codepen.io/ReitGames/pen/dyENKod Edit: I scaled the game manually on launch using After removing this scaling on launch, I was able to fix the error. |
I had add a PR #6818, tested with test code on codepen, seems to fix this bug. |
Thank you for submitting this issue. We have fixed this (by merging rex's PR) and the fix has been pushed to the |
Version
Description
When using the new
EXPAND
scale mode after changing scenes from A to B and back to A usingscene.start
theEXPAND
effect wears off and the scene is resized to config width and height.Example Test Code
https://codepen.io/calcue/pen/eYozRjP
Additional Information
I couldn't find a lot of documentation for this feature but can find other scale modes. Maybe I'm looking in the wrong place.
https://newdocs.phaser.io/docs/3.80.0/Phaser.Scale
The text was updated successfully, but these errors were encountered: