@bizy/core 19.0.13 → 19.0.14
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.
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -2624,16 +2624,16 @@ class BizyGridComponent {
|
|
|
2624
2624
|
return;
|
|
2625
2625
|
}
|
|
2626
2626
|
this.items = this.gridDirective.items;
|
|
2627
|
+
this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
|
|
2628
|
+
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
2629
|
+
this.#resizeObserver.observe(resizeRef);
|
|
2630
|
+
this.#subscription.add(this.notifier$.pipe(debounceTime(50)).subscribe(() => {
|
|
2631
|
+
this.#updateView();
|
|
2632
|
+
}));
|
|
2627
2633
|
this.#rowScrollingMutationObserver.disconnect();
|
|
2628
2634
|
this.ref.detectChanges();
|
|
2629
2635
|
});
|
|
2630
2636
|
this.#rowScrollingMutationObserver.observe(this.document.body, { childList: true, subtree: true });
|
|
2631
|
-
this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
|
|
2632
|
-
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
2633
|
-
this.#resizeObserver.observe(resizeRef);
|
|
2634
|
-
this.#subscription.add(this.notifier$.pipe(debounceTime(50)).subscribe(() => {
|
|
2635
|
-
this.#updateView();
|
|
2636
|
-
}));
|
|
2637
2637
|
}
|
|
2638
2638
|
#updateView = () => {
|
|
2639
2639
|
this.itemTemplate = this.gridDirective.templateRef;
|