From e9f0c4a04c4f7a67d07b7678e9a4432308909309 Mon Sep 17 00:00:00 2001 From: prcdevgitbot Date: Wed, 6 Mar 2024 05:41:45 +0000 Subject: [PATCH] See https://github.com/pewresearch/pewresearch-org/commit/1777c19f17872d3dc3098ec88000a45c9402ee90 from refs/heads/release/5.0 --- blocks/navigation-mega-menu/src/view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/blocks/navigation-mega-menu/src/view.js b/blocks/navigation-mega-menu/src/view.js index 90099a6c8..ab9a81324 100644 --- a/blocks/navigation-mega-menu/src/view.js +++ b/blocks/navigation-mega-menu/src/view.js @@ -88,6 +88,7 @@ const { state, actions } = store('prc-block/navigation-mega-menu', { const height = navBlock.offsetHeight; context.top = height + 1; + // Everything below is heavily cribbed from Nick Diego for the js math window math. const bodyStyles = window.getComputedStyle(document.body); const rootPaddingLeft = bodyStyles .getPropertyValue('--wp--style--root--padding-left')