@ecl/vanilla-component-inpage-navigation
Advanced tools
Comparing version 4.6.5 to 4.7.0
@@ -442,3 +442,9 @@ import Stickyfill from 'stickyfilljs'; | ||
if (viewportWidth < 996) { | ||
topPosition = this.toggleElement.getBoundingClientRect().bottom + 16; | ||
const toggleWrapper = this.toggleElement.parentElement; | ||
if (toggleWrapper) { | ||
// EC has currently a negative margin set on the wrapper. | ||
topPosition = | ||
toggleWrapper.getBoundingClientRect().bottom + | ||
parseFloat(window.getComputedStyle(toggleWrapper).marginBottom); | ||
} | ||
} else if (listTitle) { | ||
@@ -445,0 +451,0 @@ // If we have a title in desktop |
@@ -5,3 +5,3 @@ { | ||
"license": "EUPL-1.2", | ||
"version": "4.6.5", | ||
"version": "4.7.0", | ||
"description": "ECL In-page Navigation", | ||
@@ -13,5 +13,5 @@ "main": "inpage-navigation.js", | ||
"dependencies": { | ||
"@ecl/dom-utils": "4.6.5", | ||
"@ecl/vanilla-layout-grid": "4.6.5", | ||
"focus-trap": "7.5.4", | ||
"@ecl/dom-utils": "4.7.0", | ||
"@ecl/vanilla-layout-grid": "4.7.0", | ||
"focus-trap": "7.6.0", | ||
"gumshoejs": "5.1.2", | ||
@@ -36,3 +36,3 @@ "stickyfilljs": "2.1.0" | ||
], | ||
"gitHead": "71a79686cbc3f9569cba0fa5e06fceb5a28ccb38" | ||
"gitHead": "63d4038a18f52a1cc111992bea3add56eb5fa969" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43291
551
+ Added@ecl/dom-utils@4.7.0(transitive)
+ Added@ecl/vanilla-layout-grid@4.7.0(transitive)
+ Addedfocus-trap@7.6.0(transitive)
- Removed@ecl/dom-utils@4.6.5(transitive)
- Removed@ecl/vanilla-layout-grid@4.6.5(transitive)
- Removedfocus-trap@7.5.4(transitive)
Updated@ecl/dom-utils@4.7.0
Updatedfocus-trap@7.6.0