aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-09-27 14:11:55 +0200
committerMario Vavti <mario@mariovavti.com>2016-09-27 14:11:55 +0200
commit68cb4baeb3213a2e6b24b4ad4526f1aaf6e741ec (patch)
tree2cc03bf48bf42c84e9b5ee02b25969633e67a643
parentc28ba24525f8210fc1bc5f24e938878936678801 (diff)
downloadvolse-hubzilla-68cb4baeb3213a2e6b24b4ad4526f1aaf6e741ec.tar.gz
volse-hubzilla-68cb4baeb3213a2e6b24b4ad4526f1aaf6e741ec.tar.bz2
volse-hubzilla-68cb4baeb3213a2e6b24b4ad4526f1aaf6e741ec.zip
do not scroll items behind the navbar
-rw-r--r--view/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index aadb4dff0..65a5311af 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -653,7 +653,7 @@ function updateConvItems(mode,data) {
// auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode
if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') {
- $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top }, 'slow');
+ $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top - $('nav').outerHeight(true) }, 'slow');
if($('.collapsed-comments').length) {
var scrolltoid = $('.collapsed-comments').attr('id').substring(19);
$('#collapsed-comments-' + scrolltoid).slideDown();