uikit 3.21.6-dev.6f62fc2a0 → 3.21.6-dev.8cf944953
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/CHANGELOG.md +6 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +14 -6
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +14 -6
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/sticky.js +15 -4
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.21.6-dev.
|
|
5
|
+
"version": "3.21.6-dev.8cf944953",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/sticky.js
CHANGED
|
@@ -100,10 +100,11 @@ export default {
|
|
|
100
100
|
viewport(),
|
|
101
101
|
scroll({ target: () => document.scrollingElement }),
|
|
102
102
|
resize({
|
|
103
|
-
target: ({ $el }) => [$el,
|
|
103
|
+
target: ({ $el }) => [$el, getVisibleParent($el), document.scrollingElement],
|
|
104
104
|
handler(entries) {
|
|
105
105
|
this.$emit(
|
|
106
|
-
this._data.resized &&
|
|
106
|
+
this._data.resized &&
|
|
107
|
+
entries.some(({ target }) => target === getVisibleParent(this.$el))
|
|
107
108
|
? 'update'
|
|
108
109
|
: 'resize',
|
|
109
110
|
);
|
|
@@ -153,6 +154,8 @@ export default {
|
|
|
153
154
|
return;
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
console.log(this._uid, types, width);
|
|
158
|
+
|
|
156
159
|
const hide = this.isFixed && types.has('update');
|
|
157
160
|
if (hide) {
|
|
158
161
|
preventTransition(this.target);
|
|
@@ -214,7 +217,7 @@ export default {
|
|
|
214
217
|
maxScrollHeight,
|
|
215
218
|
parseProp(true, this.$el, 0, true) - elHeight - offset + overflow,
|
|
216
219
|
) &&
|
|
217
|
-
css(
|
|
220
|
+
css(getVisibleParent(this.$el), 'overflowY') === 'visible';
|
|
218
221
|
|
|
219
222
|
return {
|
|
220
223
|
start,
|
|
@@ -456,7 +459,7 @@ function parseProp(value, el, propOffset, padding) {
|
|
|
456
459
|
if (isNumeric(value) || (isString(value) && value.match(/^-?\d/))) {
|
|
457
460
|
return propOffset + toPx(value, 'height', el, true);
|
|
458
461
|
} else {
|
|
459
|
-
const refElement = value === true ?
|
|
462
|
+
const refElement = value === true ? getVisibleParent(el) : query(value, el);
|
|
460
463
|
return (
|
|
461
464
|
getOffset(refElement).bottom -
|
|
462
465
|
(padding && refElement?.contains(el) ? toFloat(css(refElement, 'paddingBottom')) : 0)
|
|
@@ -484,3 +487,11 @@ function preventTransition(element) {
|
|
|
484
487
|
requestAnimationFrame(() => removeClass(element, clsTransitionDisable));
|
|
485
488
|
}
|
|
486
489
|
}
|
|
490
|
+
|
|
491
|
+
function getVisibleParent(element) {
|
|
492
|
+
while ((element = parent(element))) {
|
|
493
|
+
if (isVisible(element)) {
|
|
494
|
+
return element;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|