From 54aca360f5a6fc63ca54ef44d45199f07f187973 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 26 Sep 2016 17:06:59 -0400 Subject: [PATCH] Fix menu scroll position --- templates/CRM/common/navigation.js.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"}); }); -- 2.25.1