From: Laury GvR Date: Thu, 5 Nov 2015 14:56:20 +0000 (-0500) Subject: Fixing the tab disappearing when scrolling down. X-Git-Tag: V1.0.0^2~37 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2ed73e0730cb420f42cbcf8b209d48e9693bd12f;p=WP-Themes%2FGovernmentEmmet.git Fixing the tab disappearing when scrolling down. --- 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');