Skip to content

Commit

Permalink
Merge pull request #46845 from Faless/js/4.x_init_canvas_size
Browse files Browse the repository at this point in the history
[HTML5] Properly set canvas size during setup.
  • Loading branch information
akien-mga authored Mar 10, 2021
2 parents 0bef220 + 3f059b9 commit a3cdaa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/javascript/js/libs/library_godot_display.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ const GodotDisplay = {
canvas.style.left = 0;
break;
}
GodotDisplayScreen.updateSize();
if (p_fullscreen) {
GodotDisplayScreen.requestFullscreen();
}
Expand Down

0 comments on commit a3cdaa7

Please sign in to comment.