title: Materialize scrollspy offset issue
body: <p>So to begin with here is the issue:</p>
  
  <p><a href="https://i.stack.imgur.com/Je6sX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Je6sX.png" alt="enter image description here"></a></p>
  
  <p>The red line should be on <code>topicTimer0</code> not offset above it. The menu is setup at the top of the body with the following code (notably this is not what the original html looks like but rather after elements have been added with jquery):</p>
  
  <pre><code>&lt;div class="col s2 z-depth-2"&gt;
      &lt;h3&gt;timer&lt;/h3&gt;
      &lt;hr&gt;
      &lt;ul class="section table-of-contents"&gt;
          &lt;li&gt;&lt;a href="#topic0OnScreen" class="active"&gt;&lt;h5&gt;topicTimer0&lt;/h5&gt;&lt;/a&gt;
              &lt;ul&gt;&lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#topic1OnScreen" class=""&gt;&lt;h5&gt;topicTimer1&lt;/h5&gt;&lt;/a&gt;
              &lt;ul&gt;&lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#topic2OnScreen" class=""&gt;&lt;h5&gt;topicTimer2&lt;/h5&gt;&lt;/a&gt;
              &lt;ul&gt;&lt;/ul&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is what the original html looks like:</p>
  
  <pre><code>&lt;div class="col s2 z-depth-2"&gt;
      &lt;h3&gt;timer&lt;/h3&gt;
      &lt;hr&gt;
      &lt;ul class="section table-of-contents"&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is a JSFiddle of it in this state:(<a href="https://jsfiddle.net/u1owwv9p/" rel="nofollow noreferrer">https://jsfiddle.net/u1owwv9p/</a>) now it should be noted on JSFIddle it adds some extra issues like adding a new <code>topicTimer</code> to the list and adding another topic header at the bottom, but these issues do not appear in the actual program, the only one that does is the one I have illustrated.</p>
  
  <p>In case it's desired here is a link to the documentation for what I'm doing here:(<a href="http://materializecss.com/scrollspy.html" rel="nofollow noreferrer">http://materializecss.com/scrollspy.html</a>).</p>