@txstate-mws/svelte-components 1.6.4 → 1.6.5
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/dist/actions/glue.js +10 -10
- package/package.json +1 -1
package/dist/actions/glue.js
CHANGED
|
@@ -44,8 +44,8 @@ export function glue(el, { target, align = 'auto', cover = false, gap = 0, adjus
|
|
|
44
44
|
requestAnimationFrame(() => {
|
|
45
45
|
el.style.top = `${rect.top + (cover ? 0 : targetHeight) + gap}px`;
|
|
46
46
|
el.style.left = `${rect.left}px`;
|
|
47
|
-
el.style.bottom
|
|
48
|
-
el.style.right
|
|
47
|
+
el.style.removeProperty('bottom');
|
|
48
|
+
el.style.removeProperty('right');
|
|
49
49
|
adjustParentHeight();
|
|
50
50
|
});
|
|
51
51
|
valign = 'bottom';
|
|
@@ -54,8 +54,8 @@ export function glue(el, { target, align = 'auto', cover = false, gap = 0, adjus
|
|
|
54
54
|
else if (autoalign === 'bottomright') {
|
|
55
55
|
requestAnimationFrame(() => {
|
|
56
56
|
el.style.top = `${rect.top + (cover ? 0 : targetHeight) + gap}px`;
|
|
57
|
-
el.style.left
|
|
58
|
-
el.style.bottom
|
|
57
|
+
el.style.removeProperty('left');
|
|
58
|
+
el.style.removeProperty('bottom');
|
|
59
59
|
el.style.right = `${rect.right}px`;
|
|
60
60
|
adjustParentHeight();
|
|
61
61
|
});
|
|
@@ -64,10 +64,10 @@ export function glue(el, { target, align = 'auto', cover = false, gap = 0, adjus
|
|
|
64
64
|
}
|
|
65
65
|
else if (autoalign === 'topleft') {
|
|
66
66
|
requestAnimationFrame(() => {
|
|
67
|
-
el.style.top
|
|
67
|
+
el.style.removeProperty('top');
|
|
68
68
|
el.style.left = `${rect.left}px`;
|
|
69
69
|
el.style.bottom = `${rect.bottom + (cover ? 0 : targetHeight) + gap}px`;
|
|
70
|
-
el.style.right
|
|
70
|
+
el.style.removeProperty('right');
|
|
71
71
|
adjustParentHeight();
|
|
72
72
|
});
|
|
73
73
|
valign = 'top';
|
|
@@ -75,8 +75,8 @@ export function glue(el, { target, align = 'auto', cover = false, gap = 0, adjus
|
|
|
75
75
|
}
|
|
76
76
|
else if (autoalign === 'topright') {
|
|
77
77
|
requestAnimationFrame(() => {
|
|
78
|
-
el.style.top
|
|
79
|
-
el.style.left
|
|
78
|
+
el.style.removeProperty('top');
|
|
79
|
+
el.style.removeProperty('left');
|
|
80
80
|
el.style.bottom = `${rect.bottom + (cover ? 0 : targetHeight) + gap}px`;
|
|
81
81
|
el.style.right = `${rect.right}px`;
|
|
82
82
|
adjustParentHeight();
|
|
@@ -130,9 +130,9 @@ function isFixedContainer(el) {
|
|
|
130
130
|
return true; // A filter value other than none
|
|
131
131
|
if (['layout', 'paint', 'strict', 'content'].includes(css.getPropertyValue('contain')))
|
|
132
132
|
return true; // A contain value of layout, paint, strict or content (e.g. contain: paint;)
|
|
133
|
-
if (css.getPropertyValue('container-type') !== 'normal')
|
|
133
|
+
if ('container-type' in css && css.getPropertyValue('container-type') !== 'normal')
|
|
134
134
|
return true; // A container-type value other than normal
|
|
135
|
-
if (css.getPropertyValue('backdrop-filter') !== 'none')
|
|
135
|
+
if ('backdrop-filter' in css && css.getPropertyValue('backdrop-filter') !== 'none')
|
|
136
136
|
return true; // A backdrop-filter other than none (e.g. backdrop-filter: blur(10px);)
|
|
137
137
|
return false;
|
|
138
138
|
}
|