javascript - Bootstrap + Affix : affixed menu jumps off screen -


i trying set simple example bootstrap's affix.js.

however, problem item trying have sticky jumps off screen negative top switches affix-top affix. , never recovers there.

i set small jsfiddle, illustrates issue: https://jsfiddle.net/mjg12uep/6/

i have done on project, can't heck of figure out going on here.

when playing around little bit more, realized works when add position: relative .affix-top. suppose without that, javascript not sure "anchor" element, , pushed off screen. have updated fiddle accordingly.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -