From 16bf4d6c95771f78ca2f21e17b6b0786511af506 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 14 May 2021 18:04:18 +0200 Subject: [PATCH] Move call the setViewportHeight to start function. This avoids issues with initialisation order. --- static/galene.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index d2c614c..8369bed 100644 --- a/static/galene.js +++ b/static/galene.js @@ -371,7 +371,6 @@ function setViewportHeight() { // Ajust video component size resizePeers(); } -setViewportHeight(); // On resize and orientation change, we update viewport height addEventListener('resize', setViewportHeight); @@ -2937,6 +2936,8 @@ function start() { fillLogin(); document.getElementById("login-container").classList.remove('invisible'); + + setViewportHeight(); } start();