aw-front-helpers 2.5.3 → 2.5.4
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/classes/sticky.js +3 -3
- package/package.json +1 -1
package/classes/sticky.js
CHANGED
|
@@ -30,12 +30,12 @@ export default class Sticky extends EventEmitter {
|
|
|
30
30
|
return this._options;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
set breakpointDisabled(
|
|
33
|
+
set breakpointDisabled(breakpoint) {
|
|
34
34
|
this._options.breakpointDisabled = breakpoint;
|
|
35
35
|
this.update();
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
set topHeightAdjustement(
|
|
38
|
+
set topHeightAdjustement(height) {
|
|
39
39
|
this._options.topHeightAdjustement = height;
|
|
40
40
|
this.update();
|
|
41
41
|
}
|
|
@@ -121,7 +121,7 @@ export default class Sticky extends EventEmitter {
|
|
|
121
121
|
wrapperTop: boudingWrapper.top + this._vars.scrollY,
|
|
122
122
|
wrapperHeight: boudingWrapper.height,
|
|
123
123
|
};
|
|
124
|
-
if (
|
|
124
|
+
if (boudingWrapper.height <= boudingContainer.height) {
|
|
125
125
|
this._setDisabled();
|
|
126
126
|
return;
|
|
127
127
|
}
|