I tried adding the code
Code: Select all
window.dispatchEvent(new Event('resize')
Code: Select all
onMenuBottonClick(event)
Is there any way I can dispatch the resize event on the window *after* the menu is completely hidden?
John
Code: Select all
window.dispatchEvent(new Event('resize')
Code: Select all
onMenuBottonClick(event)
Code: Select all
ngAfterViewChecked() {
if(!this.map && this.el.nativeElement.offsetParent) {
this.initialize();
}
}
Users browsing this forum: No registered users and 10 guests