Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36b1de73 authored by smain@google.com's avatar smain@google.com Committed by Android Git Automerger
Browse files

am bc667f1c: am 08f336ea: fix regression from Change-Id:...

am bc667f1c: am 08f336ea: fix regression from Change-Id: I88c1e8192f1cbb5373af592b9e9f9a04ffe6fc7c that causes anchors in most docs other than reference to stop working

* commit 'bc667f1c':
  fix regression from Change-Id: I88c1e8192f1cbb5373af592b9e9f9a04ffe6fc7c that causes anchors in most docs other than reference to stop working
parents 40e1d355 bc667f1c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2540,8 +2540,8 @@ google.setOnLoadCallback(function(){
function offsetScrollForSticky() {
  var hash = escape(location.hash.substr(1));
  var $matchingElement = $("#"+hash);
  // Sanity check that hash is a real hash and that there's an element with that ID on the page
  if ((hash.indexOf("#") == 0) && $matchingElement.length) {
  // Sanity check that there's an element with that ID on the page
  if ($matchingElement.length) {
    // If the position of the target element is near the top of the page (<20px, where we expect it
    // to be because we need to move it down 60px to become in view), then move it down 60px
    if (Math.abs($matchingElement.offset().top - $(window).scrollTop()) < 20) {