title: How do I get the scrollToFix plugin limit to stop at my website's footer?
body: <p>I am using the <a href="https://github.com/bigspotteddog/ScrollToFixed" rel="nofollow">scrollToFix</a> script on my website to fix the ads as the user scrolls down the page as well as release when the user reaches the footer (so that the ads do not overlap the footer). My code below, however, causes the ads to stop scrolling between a third and half way down the page, rather than at the footer. Setting it to scroll to the outerHeight of the container minus the height of the footer leaves it stopping at that spot as well.</p>
  
  <pre><code>$(document).ready(function() {
       $('.right').scrollToFixed({
            marginTop: $('.float').outerHeight() + 8, 
            limit: $('footer').offset().top 
       });
  });
  </code></pre>
  
  <p>Are there any ideas on how to get it to stop more accurately?</p>