twitter/bootstrap — pull request #7857 by buberdds (2013-05-12 19:00:46+00:00)
Title: affix positioning and this.unpin update

Fix for "affix bottom" and "affix key up,down,pageup, pagedown" issues.

How to reproduce a problem on the twitter site:
- navigate to http://twitter.github.io/bootstrap/javascript.html
- left menu must be higher then visible part of the container (so u can't see all links of the "nav nav-list bs-docs-sidenav" element)
- it's visible on lower resolutions or when you reduce height of a viewport/browser window
- you can even open the dev tools and dock it horizontally
- press a key: end or pgdn a few times and the sidebar should float over the footer

in chrome/ff u should see the problem while pressing the pgdn key, in IE while pressing home etc

There is an another problem with affix position. When you scrolldown to the bottom of the page and refresh a page(F5), sidebar will float over footer.

If you can reproduce the problem with the above description you can verify commit in the chrome dev tools: ctrl+shift+f type in affix and click on bootstrap-affix.js content. Ctrl+a and delete the content. Then paste in https://raw.github.com/buberdds/bootstrap/3.0.0-wip-affix-fix/js/bootstrap-affix.js and hit ctrl+s.