From 2ed73e0730cb420f42cbcf8b209d48e9693bd12f Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 5 Nov 2015 09:56:20 -0500 Subject: [PATCH] Fixing the tab disappearing when scrolling down. --- js/app.js | 4 ++-- js/custom/sticky-footer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index af2f87f..6af487b 100644 --- a/js/app.js +++ b/js/app.js @@ -50,11 +50,11 @@ function get_footer_position() { if (top_of_footer < $(window).height()) { $("#connect").css('padding-bottom','53px'); - return 'relative'; + return 'fixed'; } else if (bottom >= top_of_footer) { $("#connect").css('padding-bottom','53px'); - return 'fixed'; + return 'relative'; } else if (bottom <= top_of_footer) { $("#connect").css('padding-bottom','0'); diff --git a/js/custom/sticky-footer.js b/js/custom/sticky-footer.js index eecad84..9faa954 100644 --- a/js/custom/sticky-footer.js +++ b/js/custom/sticky-footer.js @@ -30,11 +30,11 @@ function get_footer_position() { if (top_of_footer < $(window).height()) { $("#connect").css('padding-bottom','53px'); - return 'relative'; + return 'fixed'; } else if (bottom >= top_of_footer) { $("#connect").css('padding-bottom','53px'); - return 'fixed'; + return 'relative'; } else if (bottom <= top_of_footer) { $("#connect").css('padding-bottom','0'); -- 2.17.1