From: David Cramer Date: Mon, 23 Apr 2012 14:17:12 +0000 (+0000) Subject: Webhelp: tweaking scrolldown offset for anchors X-Git-Tag: release/1.79.1~6^2~468 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d4d1c1f2e34f87e54ba008e61ff5774a5e7fe2e;p=docbook-dsssl Webhelp: tweaking scrolldown offset for anchors --- diff --git a/xsl/webhelp/template/common/main.js b/xsl/webhelp/template/common/main.js index 9b8e185fa..83f58e432 100644 --- a/xsl/webhelp/template/common/main.js +++ b/xsl/webhelp/template/common/main.js @@ -21,7 +21,7 @@ $(document).ready(function() { $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']'); if (!(this.hash == "#searchDiv" || this.hash == "#treeDiv" || this.hash == "") && $target.length) { - var targetOffset = $target.offset().top - 110; + var targetOffset = $target.offset().top - 120; $('html,body') .animate({scrollTop: targetOffset}, 200); return false;