@skyux/core 12.6.0 → 12.7.0
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/skyux-core.mjs
CHANGED
@@ -3992,14 +3992,24 @@ class SkyScrollableHostService {
|
|
3992
3992
|
of(undefined),
|
3993
3993
|
...additionalHosts.map((container) => resizeObserverSvc.observe(container)),
|
3994
3994
|
];
|
3995
|
+
let getHostRect;
|
3995
3996
|
if (scrollableHost && scrollableHost !== this.#windowRef.nativeWindow) {
|
3996
3997
|
inputs.push(resizeObserverSvc.observe({ nativeElement: scrollableHost }));
|
3998
|
+
getHostRect = () => scrollableHost.getBoundingClientRect();
|
3999
|
+
}
|
4000
|
+
else {
|
4001
|
+
getHostRect = () => ({
|
4002
|
+
top: 0,
|
4003
|
+
left: 0,
|
4004
|
+
right: this.#windowRef.nativeWindow.innerWidth,
|
4005
|
+
bottom: this.#windowRef.nativeWindow.innerHeight,
|
4006
|
+
});
|
3997
4007
|
}
|
3998
4008
|
return concat(inputs).pipe(debounceTime(0, animationFrameScheduler), map$1(() => {
|
3999
4009
|
const viewportSize = this.#getViewportSize();
|
4000
|
-
let { top, left, right, bottom } =
|
4010
|
+
let { top, left, right, bottom } = getHostRect();
|
4001
4011
|
for (const container of additionalHosts) {
|
4002
|
-
if (container.nativeElement?.
|
4012
|
+
if (container.nativeElement?.offsetParent) {
|
4003
4013
|
const containerRect = container.nativeElement.getBoundingClientRect();
|
4004
4014
|
top = Math.max(top, containerRect.top);
|
4005
4015
|
left = Math.max(left, containerRect.left);
|
@@ -4691,7 +4701,7 @@ class Version {
|
|
4691
4701
|
/**
|
4692
4702
|
* Represents the version of @skyux/core.
|
4693
4703
|
*/
|
4694
|
-
const VERSION = new Version('12.
|
4704
|
+
const VERSION = new Version('12.7.0');
|
4695
4705
|
|
4696
4706
|
/**
|
4697
4707
|
* Generated bundle index. Do not edit.
|