We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db648a6 commit fc0ae57Copy full SHA for fc0ae57
lib/web/mage/sticky.js
@@ -13,7 +13,7 @@ define([
13
options: {
14
container: '',
15
spacingTop: 0,
16
- offsetTop: 0,
+ stickAfter: 0,
17
stickyClass: '_sticky'
18
},
19
@@ -56,7 +56,7 @@ define([
56
var offset,
57
isStatic,
58
stuck,
59
- offsetTop;
+ stickAfter;
60
61
isStatic = this.element.css('position') === 'static';
62
@@ -68,9 +68,9 @@ define([
68
offset = Math.max(0, Math.min(offset, this.maxOffset));
69
70
stuck = this.element.hasClass(this.options.stickyClass);
71
- offsetTop = this._getOptionValue('offsetTop');
+ stickAfter = this._getOptionValue('stickAfter');
72
73
- if (offset && !stuck && offset < offsetTop) {
+ if (offset && !stuck && offset < stickAfter) {
74
offset = 0;
75
}
76
0 commit comments