1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Move call the setViewportHeight to start function.

This avoids issues with initialisation order.
This commit is contained in:
Juliusz Chroboczek 2021-05-14 18:04:18 +02:00
parent 3f3b245926
commit 16bf4d6c95

View file

@ -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();