Merge pull request #46845 from Faless/js/4.x_init_canvas_size

[HTML5] Properly set canvas size during setup.
This commit is contained in:
Rémi Verschelde 2021-03-10 07:49:13 +01:00 committed by GitHub
commit a3cdaa7a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -805,6 +805,7 @@ const GodotDisplay = {
canvas.style.left = 0;
break;
}
GodotDisplayScreen.updateSize();
if (p_fullscreen) {
GodotDisplayScreen.requestFullscreen();
}