Resize cowebsites when main slot is loaded

This commit is contained in:
Alexis Faizeau 2021-11-25 10:48:14 +01:00
parent ecb72d0fd1
commit a775a01d2a

View file

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