Use window and not viewport in css for main-container

This commit is contained in:
GRL 2021-06-14 15:54:22 +02:00
parent f103a919f2
commit 281b8580cd
2 changed files with 6 additions and 5 deletions

View file

@ -44,8 +44,8 @@ class WaScaleManager {
// Resize the game element at the same size at the canvas
const gameStyle = HtmlUtils.getElementByIdOrFail<HTMLDivElement>('game').style;
gameStyle.height = style.height;
gameStyle.width = style.width;
gameStyle.height = style.height;
// Note: onResize will be called twice (once here and once is Game.ts), but we have no better way.
for (const scene of this.game.scene.getScenes(true)) {