Merge pull request #1592 from thecodingmachine/fix-blank-cowebsite-bar
Resize cowebsites when main slot is loaded
This commit is contained in:
commit
923a134270
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue