- + Testrun Step 1: To perform a device test, please, select ports in @@ -171,6 +175,7 @@

Testrun

panel.
Testrun first. Testrun >. this.setTop()); + } + + ngAfterViewInit() { + this.setTop(); + } + + private setTop() { + const firstCallout = + this.element.nativeElement.parentNode?.firstElementChild; + if (firstCallout === this.element.nativeElement) { + const next = this.element.nativeElement.nextElementSibling; + let el = next.nodeName === 'APP-CALLOUT' ? next : null; + while (el) { + this.renderer.setStyle( + el, + 'top', + `${firstCallout.offsetHeight - 36}px` + ); + el = + el.nextElementSibling.nodeName === 'APP-CALLOUT' + ? el.nextElementSibling + : null; + } + } + } +}