Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: Docs
    • Labels:
    • Rank:
      1|hzywef:

      Description

      [Error] TypeError: undefined is not an object (evaluating '$toElement.position().top')
      	anchor_scroll (doctools.js, line 255)
      	(anonymous function) (doctools.js, line 278)
      	j (jquery.js, line 2)
      	fireWith (jquery.js, line 2)
      	ready (jquery.js, line 2)
      	J (jquery.js, line 2)
      
      function anchor_scroll(hash){
      // 	anchor_alert('hash:'+hash);
      	var fromTop = 32 + 20 - 2; // Top bar height + space - overlap
      	var $toElement = jQuery("[id="+hash+"]");
      	var toPosition = $toElement.position().top - fromTop;
      	// Scroll to element
      	$('html, body').animate({ scrollTop: toPosition });
      	// Update URL in browser
      	if(history && "pushState" in history) {
      		history.pushState({}, document.title, window.location.pathname + "#" + hash);
      	}
      }
      

        Attachments

          Activity

            People

            • Assignee:
              John John Jackson
              Reporter:
              John John Jackson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: