@agorapulse/ui-components 22.10.5 → 22.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2483,11 +2483,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
2483
2483
 
2484
2484
  /**
2485
2485
  * Height of the host element, fed by a ResizeObserver so reading it never forces a synchronous layout.
2486
+ * Stays at 0 where ResizeObserver does not exist (jsdom, server rendering).
2486
2487
  * Must be called in an injection context.
2487
2488
  */
2488
2489
  const injectHostHeight = () => {
2489
2490
  const height = signal(0, /* @ts-ignore */
2490
2491
  ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
2492
+ if (typeof ResizeObserver === 'undefined') {
2493
+ return height.asReadonly();
2494
+ }
2491
2495
  const observer = new ResizeObserver(([entry]) => height.set(entry.contentRect.height));
2492
2496
  observer.observe(inject(ElementRef).nativeElement);
2493
2497
  inject(DestroyRef).onDestroy(() => observer.disconnect());