You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
[HTML5] Properly set canvas size during setup.
It used to be updated before the first iteration, causing the
window/viewport size values to be incorrect during the initialization
phase (e.g. during the first `_ready` notification).
(cherry picked from commit 3f059b90d6)
This commit is contained in:
committed by
Rémi Verschelde
parent
8feb53e509
commit
82b900bdda
@@ -908,6 +908,7 @@ const GodotDisplay = {
|
|||||||
canvas.style.left = 0;
|
canvas.style.left = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
GodotDisplayScreen.updateSize();
|
||||||
if (p_fullscreen) {
|
if (p_fullscreen) {
|
||||||
GodotDisplayScreen.requestFullscreen();
|
GodotDisplayScreen.requestFullscreen();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user