]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fixes affix-top class not applying
authorNick O'Donoghue <nick.od@me.com>
Sun, 16 Nov 2014 21:01:32 +0000 (21:01 +0000)
committerChris Rebert <code@rebertia.com>
Tue, 18 Nov 2014 02:17:42 +0000 (18:17 -0800)
commit36b4f90f250b96390f10057ba5b1312367fafe8c
treec48e3cb2e18645a315964cb7bb432b870b5abe82
parentda79ab94889dd72c83245c376e278a4c378f84b4
Fixes affix-top class not applying

Use scrollTop instead of colliderTop which uses the elements
offset().top, as the offset top does not account for padding.

This issue can be replicated by using a navbar-fixed-top and applying
relevant padding to the body. (A navbar-static-top with no padding on
the body does not encounter this issue)

Fixes #15078
Closes #15154 by merging it
js/affix.js