Use window and not viewport in css for main-container
This commit is contained in:
parent
f103a919f2
commit
281b8580cd
2 changed files with 6 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue