From a775a01d2a0764e70107ca7c67526820db2cae0b Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Thu, 25 Nov 2021 10:48:14 +0100 Subject: [PATCH] Resize cowebsites when main slot is loaded --- front/src/WebRtc/CoWebsiteManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/src/WebRtc/CoWebsiteManager.ts b/front/src/WebRtc/CoWebsiteManager.ts index ac4281ff..3bfaa5f7 100644 --- a/front/src/WebRtc/CoWebsiteManager.ts +++ b/front/src/WebRtc/CoWebsiteManager.ts @@ -234,6 +234,9 @@ class CoWebsiteManager { this.openedMain = iframeStates.loading; } private openMain(): void { + this.cowebsiteDom.addEventListener("transitionend", () => { + this.resizeAllIframes(); + }); this.cowebsiteDom.classList.remove("loading", "hidden"); //edit the css class to trigger the transition this.openedMain = iframeStates.opened; this.resetStyleMain();