chefcookie 2.7.7 → 2.7.8
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/_build/script.js +5 -1
- package/chefcookie.min.js +1 -1
- package/package.json +9 -9
package/_build/script.js
CHANGED
|
@@ -123,7 +123,9 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
123
123
|
defaultHtmlScrollBehavior = window.getComputedStyle(document.documentElement).scrollBehavior;
|
|
124
124
|
document.documentElement.style.scrollBehavior = 'auto';
|
|
125
125
|
}
|
|
126
|
-
document.body.style.top = '
|
|
126
|
+
document.body.style.top = '';
|
|
127
|
+
document.body.style.left = '';
|
|
128
|
+
document.body.style.right = '';
|
|
127
129
|
window.scrollTo(0, this.scrollPosition);
|
|
128
130
|
if (defaultBodyScrollBehavior !== null) {
|
|
129
131
|
document.body.style.scrollBehavior = defaultBodyScrollBehavior;
|
|
@@ -349,6 +351,8 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
349
351
|
if (this.config.style.layout !== 'topbar') {
|
|
350
352
|
this.scrollPosition = window.pageYOffset;
|
|
351
353
|
document.body.style.top = -this.scrollPosition + 'px';
|
|
354
|
+
document.body.style.left = '0px';
|
|
355
|
+
document.body.style.right = '0px';
|
|
352
356
|
}
|
|
353
357
|
document.documentElement.classList.add('chefcookie--noscroll');
|
|
354
358
|
}
|