Merge pull request #1592 from thecodingmachine/fix-blank-cowebsite-bar
Resize cowebsites when main slot is loaded
This commit is contained in:
commit
923a134270
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user