aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl
index 4dfaf415b..91f304ccb 100755
--- a/view/tpl/cover_photo_widget.tpl
+++ b/view/tpl/cover_photo_widget.tpl
@@ -29,6 +29,7 @@
$('main').css('opacity', 1);
$('aside').css('padding-top', aside_padding_top + 'px');
$('section').css('padding-top', section_padding_top + 'px');
+ $('#cover-photo').css('padding-top', $('nav').outerHeight());
$(window).scrollTop($(window).scrollTop() - $('#cover-photo').height())
$('.navbar-fixed-top').css({ 'position' : 'fixed', 'top' : 0});
$('main').css('margin-top', '');
@@ -54,7 +55,7 @@
if(coverSlid)
return;
$('html, body').animate({scrollTop: Math.ceil($('#cover-photo').height()) + 'px' });
- $('#cover-photo').css({ 'position' : 'relative' , 'top' : 0 });
+ $('#cover-photo').css({ 'position' : 'relative' , 'top' : $('nav').outerHeight() });
$('.navbar-fixed-top').css({ 'position' : 'fixed', 'top' : 0});
$('aside').css('padding-top', aside_padding_top + 'px');
$('section').css('padding-top', section_padding_top + 'px');