aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-08-24 20:06:44 -0700
committerredmatrix <mike@macgirvin.com>2016-08-24 20:06:44 -0700
commita81da0ec345fbc6c7334b6b0d5ae11a19a30918b (patch)
tree7e051c68a3f18534e38c25207e8ef2e1dc601081
parentf1fbcd7c02bb06e262b60fd40594c04e1c871b66 (diff)
downloadvolse-hubzilla-a81da0ec345fbc6c7334b6b0d5ae11a19a30918b.tar.gz
volse-hubzilla-a81da0ec345fbc6c7334b6b0d5ae11a19a30918b.tar.bz2
volse-hubzilla-a81da0ec345fbc6c7334b6b0d5ae11a19a30918b.zip
off by one pixel
-rwxr-xr-xview/tpl/cover_photo_widget.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl
index 93e3f057e..2b47270c9 100755
--- a/view/tpl/cover_photo_widget.tpl
+++ b/view/tpl/cover_photo_widget.tpl
@@ -11,7 +11,7 @@
$(document).on('click', slideUpCover);
if($('#cover-photo').length && $(window).width() > 755) {
- if($(window).scrollTop() <= $('#cover-photo').height()) {
+ if($(window).scrollTop() < $('#cover-photo').height()) {
$('main').css('margin-top', - $('nav').outerHeight(true) + 'px');
$('aside').css('padding-top', aside_padding_top - $('nav').outerHeight() + 'px');
$('section').css('padding-top', section_padding_top - $('nav').outerHeight() + 'px');
@@ -36,13 +36,13 @@
$('main').css('margin-top', '');
coverSlid = true;
}
- else if ($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() <= $('#cover-photo').height()){
+ else if ($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() < $('#cover-photo').height()){
if(coverSlid) {
$(window).scrollTop(Math.ceil($('#cover-photo').height()));
setTimeout(function(){ coverSlid = false; }, 1000);
}
else {
- if($(window).scrollTop() <= $('#cover-photo').height()) {
+ if($(window).scrollTop() < $('#cover-photo').height()) {
$('main').css('margin-top', - $('nav').outerHeight(true) + 'px');
$('aside').css('padding-top', aside_padding_top - $('nav').outerHeight() + 'px');
$('section').css('padding-top', section_padding_top - $('nav').outerHeight() + 'px');