@biggive/components 202304111006.0.0 → 202304111046.0.0
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/biggive/biggive.esm.js +1 -1
- package/dist/biggive/{p-bc682eeb.entry.js → p-9c9b7d51.entry.js} +1 -1
- package/dist/cjs/biggive-accordion_43.cjs.entry.js +5 -1
- package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +5 -1
- package/dist/components/biggive-main-menu.js +5 -1
- package/dist/esm/biggive-accordion_43.entry.js +5 -1
- package/hydrate/index.js +5 -1
- package/package.json +1 -1
|
@@ -1006,7 +1006,11 @@ const BiggiveMainMenu = class {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
setHeaderSize() {
|
|
1009
|
-
|
|
1009
|
+
// Some resize edge cases lead Firefox, and maybe others, to go haywire and get a host offset
|
|
1010
|
+
// height of millions of pixels, presumably due to a layout logic loop. So for as long as we use
|
|
1011
|
+
// this body padding workaround, we need a safe maximum value, currently 130px, beyond which
|
|
1012
|
+
// we will never further displace the main content.
|
|
1013
|
+
document.body.style.paddingTop = Math.min(130, this.host.offsetHeight).toString() + 'px';
|
|
1010
1014
|
}
|
|
1011
1015
|
componentDidRender() {
|
|
1012
1016
|
this.host.classList.add('fixed');
|
|
@@ -56,7 +56,11 @@ export class BiggiveMainMenu {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
setHeaderSize() {
|
|
59
|
-
|
|
59
|
+
// Some resize edge cases lead Firefox, and maybe others, to go haywire and get a host offset
|
|
60
|
+
// height of millions of pixels, presumably due to a layout logic loop. So for as long as we use
|
|
61
|
+
// this body padding workaround, we need a safe maximum value, currently 130px, beyond which
|
|
62
|
+
// we will never further displace the main content.
|
|
63
|
+
document.body.style.paddingTop = Math.min(130, this.host.offsetHeight).toString() + 'px';
|
|
60
64
|
}
|
|
61
65
|
componentDidRender() {
|
|
62
66
|
this.host.classList.add('fixed');
|
|
@@ -64,7 +64,11 @@ const BiggiveMainMenu$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
setHeaderSize() {
|
|
67
|
-
|
|
67
|
+
// Some resize edge cases lead Firefox, and maybe others, to go haywire and get a host offset
|
|
68
|
+
// height of millions of pixels, presumably due to a layout logic loop. So for as long as we use
|
|
69
|
+
// this body padding workaround, we need a safe maximum value, currently 130px, beyond which
|
|
70
|
+
// we will never further displace the main content.
|
|
71
|
+
document.body.style.paddingTop = Math.min(130, this.host.offsetHeight).toString() + 'px';
|
|
68
72
|
}
|
|
69
73
|
componentDidRender() {
|
|
70
74
|
this.host.classList.add('fixed');
|
|
@@ -1002,7 +1002,11 @@ const BiggiveMainMenu = class {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
setHeaderSize() {
|
|
1005
|
-
|
|
1005
|
+
// Some resize edge cases lead Firefox, and maybe others, to go haywire and get a host offset
|
|
1006
|
+
// height of millions of pixels, presumably due to a layout logic loop. So for as long as we use
|
|
1007
|
+
// this body padding workaround, we need a safe maximum value, currently 130px, beyond which
|
|
1008
|
+
// we will never further displace the main content.
|
|
1009
|
+
document.body.style.paddingTop = Math.min(130, this.host.offsetHeight).toString() + 'px';
|
|
1006
1010
|
}
|
|
1007
1011
|
componentDidRender() {
|
|
1008
1012
|
this.host.classList.add('fixed');
|
package/hydrate/index.js
CHANGED
|
@@ -7840,7 +7840,11 @@ class BiggiveMainMenu {
|
|
|
7840
7840
|
}
|
|
7841
7841
|
}
|
|
7842
7842
|
setHeaderSize() {
|
|
7843
|
-
|
|
7843
|
+
// Some resize edge cases lead Firefox, and maybe others, to go haywire and get a host offset
|
|
7844
|
+
// height of millions of pixels, presumably due to a layout logic loop. So for as long as we use
|
|
7845
|
+
// this body padding workaround, we need a safe maximum value, currently 130px, beyond which
|
|
7846
|
+
// we will never further displace the main content.
|
|
7847
|
+
document.body.style.paddingTop = Math.min(130, this.host.offsetHeight).toString() + 'px';
|
|
7844
7848
|
}
|
|
7845
7849
|
componentDidRender() {
|
|
7846
7850
|
this.host.classList.add('fixed');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biggive/components",
|
|
3
3
|
"_comment": "Version number below is automatically replaced during CircleCI build.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "202304111046.0.0",
|
|
5
5
|
"description": "Big Give Components",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.js",
|