Issue when scrolltofixed plugin switches to position: absolute
<p>i'm having a problem using the scrolltofixed jquery plugin</p>

<p><a href="https://github.com/bigspotteddog/ScrollToFixed" rel="nofollow">https://github.com/bigspotteddog/ScrollToFixed</a></p>

<p>i use:</p>

<pre><code>$('#tostick').scrollToFixed({  limit: $('#app-footer').offset().top - $('#tostick').height() - 20});  
</code></pre>

<p>my #tostick is inside a     </p>

<pre><code> margin:0 auto
</code></pre>

<p>div container and as soon it hits the fixed footer and the script switches from fixed to absolute positioning it jumps out of the container because </p>

<pre><code>left: 1107px
</code></pre>

<p>is applied, which is the distance to the left border of the browser window, instead of the left border of the centered div container. it tried to add:</p>

<pre><code>offsetLeft: -$('#container').offset().left
</code></pre>

<p>which is completely ignored.
thanks in advance for any tip!</p>
