Commit 16bf4d6c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Move call the setViewportHeight to start function.

This avoids issues with initialisation order.
parent 3f3b2459
......@@ -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();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment