Commit 1c738ceb authored by mattbloomfield's avatar mattbloomfield
Browse files

Issue #2574207 by Jelle_S, a65162: Refreshing page while scrolled down causes space at top

parent e8288054
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
      if ($menu.length) {
        // Save original padding on top. 0 timeout to get correct padding.
        setTimeout(function () {
          Drupal.behaviors.stickynav.originalPadding = $('body').css('paddingTop');
          Drupal.behaviors.stickynav.originalPadding = $('body').find('.stickynav-active').length > 0 ? 0 : $('body').css('paddingTop');
        }, 100);
        offset += parseInt(drupalSettings.stickynav.offsets.custom_offset);
        offset = offset || 0;