round up height

This commit is contained in:
Mario Vavti 2016-07-15 14:23:10 +02:00
parent 34a16e0ab9
commit 4a2fb8336e

View file

@ -48,7 +48,7 @@
}); });
function slideUpCover() { function slideUpCover() {
$('html, body').animate({scrollTop: $('#cover-photo').height() + 1 + 'px' }); $('html, body').animate({scrollTop: Math.ceil($('#cover-photo').height()) + 'px' });
} }
</script> </script>