[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).
This commit is contained in:
parent
0bef220f0a
commit
3f059b90d6
1 changed files with 1 additions and 0 deletions
|
|
@ -805,6 +805,7 @@ const GodotDisplay = {
|
|||
canvas.style.left = 0;
|
||||
break;
|
||||
}
|
||||
GodotDisplayScreen.updateSize();
|
||||
if (p_fullscreen) {
|
||||
GodotDisplayScreen.requestFullscreen();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue