We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88cee5d commit 39b154aCopy full SHA for 39b154a
public/src/bugs/7057 scalemanager android.js
@@ -26,11 +26,6 @@ class Example extends Phaser.Scene
26
const height = gameSize.height;
27
28
this.cameras.resize(width, height);
29
-
30
- this.text.setText([
31
- `parentSize.width: ${this.scale.parentSize.width}`,
32
- `parentSize.height: ${this.scale.parentSize.height}`,
33
- ]);
34
}
35
36
update (time)
@@ -42,6 +37,13 @@ class Example extends Phaser.Scene
42
37
43
38
this.earth.setPosition(w * 0.5, h * 0.5);
44
39
this.earth.setDisplaySize(w, h);
40
+
41
+ this.text.setText([
+ `width: ${this.scale.width}`,
+ `height: ${this.scale.height}`,
+ `parentSize.width: ${this.scale.parentSize.width}`,
45
+ `parentSize.height: ${this.scale.parentSize.height}`,
46
+ ]);
47
48
49
0 commit comments