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
commit 923a134270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,6 +234,9 @@ class CoWebsiteManager {
this.openedMain = iframeStates.loading; this.openedMain = iframeStates.loading;
} }
private openMain(): void { private openMain(): void {
this.cowebsiteDom.addEventListener("transitionend", () => {
this.resizeAllIframes();
});
this.cowebsiteDom.classList.remove("loading", "hidden"); //edit the css class to trigger the transition this.cowebsiteDom.classList.remove("loading", "hidden"); //edit the css class to trigger the transition
this.openedMain = iframeStates.opened; this.openedMain = iframeStates.opened;
this.resetStyleMain(); this.resetStyleMain();