From: Coleman Watts Date: Mon, 26 Sep 2016 21:06:59 +0000 (-0400) Subject: Fix menu scroll position X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=54aca360f5a6fc63ca54ef44d45199f07f187973;p=civicrm-core.git Fix menu scroll position --- diff --git a/templates/CRM/common/navigation.js.tpl b/templates/CRM/common/navigation.js.tpl index 3380057a4a..68063afdfa 100644 --- a/templates/CRM/common/navigation.js.tpl +++ b/templates/CRM/common/navigation.js.tpl @@ -60,10 +60,10 @@ {if $config->userFramework neq 'Joomla'}{literal} $('body').append(menuMarkup); + $('#civicrm-menu').css({position: "fixed", top: "0px"}); + //Track Scrolling $(window).scroll(function () { - var scroll = document.documentElement.scrollTop || document.body.scrollTop; - $('#civicrm-menu').css({top: "scroll", position: "fixed", top: "0px"}); $('div.sticky-header').css({top: "23px", position: "fixed"}); });