Created by: buberdds
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/affix-fix/js/bootstrap-affix.js and hit ctrl+s.