diff options
Diffstat (limited to 'templates/html/navtree.js')
-rw-r--r-- | templates/html/navtree.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/html/navtree.js b/templates/html/navtree.js index 1e272d3..254169f 100644 --- a/templates/html/navtree.js +++ b/templates/html/navtree.js @@ -325,11 +325,14 @@ function selectAndHighlight(hash,n) $(n.itemDiv).addClass('selected'); $(n.itemDiv).attr('id','selected'); } + var topOffset=5; + if (page_layout==1) { + topOffset+=$('#top').outerHeight(); + } if ($('#nav-tree-contents .item:first').hasClass('selected')) { - $('#nav-sync').css('top','30px'); - } else { - $('#nav-sync').css('top','5px'); + topOffset+=25; } + $('#nav-sync').css('top',topOffset+'px'); showRoot(); } |