diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-03-07 21:47:52 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-03-07 21:47:52 +0100 |
commit | b2216f82036e9ea6baab6db68899e4bafa732d65 (patch) | |
tree | 4826f311f84cca364601ca923f0f967ff93ab936 | |
parent | da3f1326e024f42e775132df96411da4d1b6705d (diff) | |
download | volse-hubzilla-b2216f82036e9ea6baab6db68899e4bafa732d65.tar.gz volse-hubzilla-b2216f82036e9ea6baab6db68899e4bafa732d65.tar.bz2 volse-hubzilla-b2216f82036e9ea6baab6db68899e4bafa732d65.zip |
prevent page jumping if the narrow navbar setting is used
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index f5790d141..8254fc87d 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -15,7 +15,7 @@ if($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() >= $('#cover-photo').height()) { $('header').fadeIn(); $('main').css('opacity', 1); - $('aside, section').css('padding-top', 71 + 'px'); + $('aside, section').css('padding-top', $('nav').outerHeight(true) + 'px'); $(window).scrollTop($(window).scrollTop() - $('#cover-photo').height()) $('.navbar-fixed-top').css('position', 'fixed'); $('#cover-photo').remove(); @@ -28,7 +28,7 @@ $(window).resize(function () { if($('#cover-photo').length && $(window).width() < 755) { $('main').css('opacity', 1); - $('aside, section').css('padding-top', 71 + 'px'); + $('aside, section').css('padding-top', $('nav').outerHeight(true) + 'px'); $('.navbar-fixed-top').css('position', 'fixed'); $('#cover-photo').remove(); } |