]> granicus.if.org Git - docbook-dsssl/commitdiff
Webhelp: tweaking scrolldown offset for anchors
authorDavid Cramer <david@thingbag.net>
Mon, 23 Apr 2012 14:17:12 +0000 (14:17 +0000)
committerDavid Cramer <david@thingbag.net>
Mon, 23 Apr 2012 14:17:12 +0000 (14:17 +0000)
xsl/webhelp/template/common/main.js

index 9b8e185fa998d7be83064e9e643f6ab01888c344..83f58e43264f0fadcacb183164ba95c9172f0033 100644 (file)
@@ -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;