Merge pull request #1592 from thecodingmachine/fix-blank-cowebsite-bar

Resize cowebsites when main slot is loaded
This commit is contained in:
grégoire parant
2021-11-25 11:36:48 +01:00
committed by GitHub
+3
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();