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

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

php variable $_SERVER['SERVER_ADDR'] is blank when using crontab -