From 22d8734a1530a3806889ca7297600e96f31ded49 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 31 Aug 2021 17:39:57 +0800 Subject: [PATCH] fix menu --- assets/javascripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 4af2a74..31b51aa 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -9,7 +9,7 @@ if ( $('.header-banner').length != 0) { $('.layout-header').css('height', ''); var scrollTop = $(window).scrollTop(); - var scrollBottom = $('html').height() - $(window).height() - scrollTop - $('.kenjohn').height(); + var scrollBottom = $('html').height() - $(window).height() - 50 - $('.kenjohn').height(); if (scrollTop>50 && scrollBottom>0) { /* 要滑動到選單的距離 */ $('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */ } else {