title: Sticky nav bar is flickering when reaching bottom of page
body: <p>I recently go my nav bar to act as a sticky nav bar that adheres to the top of my page after I scroll down to a certain point, however, when I reach the bottom of my page the entire nav bar flickers, and even disappears sometimes.  Think of it as an old TV that would flicker and you would end up hitting on the side to stop the flickering.  How would I hit my nav bar to stop it from flickering.  <a href="http://homegrowndevelopment.com/" rel="noreferrer">Here</a> is my site so you can witness all the glory of the flicker.</p>
  
  <p>Here is my HTML for the nav:</p>
  
  <pre><code>&lt;div id="nav-wrapper"&gt;
  &lt;div id="nav" class="navbar navbar-inverse affix-top" data-spy="affix"&gt;
    &lt;div class="navbar-inner" data-spy="affix-top"&gt;
      &lt;div class="container"&gt;
  
        &lt;!-- .btn-navbar is used as the toggle for collapsed navbar content --&gt;
        &lt;a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;/a&gt;
  
        &lt;!-- Everything you want hidden at 940px or less, place within here --&gt;
        &lt;div class="nav-collapse collapse"&gt;
          &lt;ul class="nav"&gt;
              &lt;li&gt;&lt;a href="#home"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#service-top"&gt;Services&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#contact-arrow"&gt;Contact&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;&lt;!--/.nav--&gt;
        &lt;/div&gt;&lt;!--/.nav-collapse collapse pull-right--&gt;
      &lt;/div&gt;&lt;!--/.container--&gt;
    &lt;/div&gt;&lt;!--/.navbar-inner--&gt;
  &lt;/div&gt;&lt;!--/#nav /.navbar navbar-inverse--&gt;
  &lt;/div&gt;&lt;!--/#nav-wrapper--&gt;
  </code></pre>
  
  <p>And here is my JS:</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function() {
          $('#nav-wrapper').height($("#nav").height());
          $('#nav').affix({
              offset: 675
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>An important note should be that this only began occurring after I changed the offset in my JS from <code>offset: $('#nav').position()</code> to <code>offset: 675</code>.  You might say, well just change it back, but with the old offset, my sticky nav would jump prematurely to the top.</p>
  
  <p>Thanks for any help of input you can provide me!</p>