• Nick O'Donoghue's avatar
    Fixes affix-top class not applying · 36b4f90f
    Nick O'Donoghue authored
    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
    36b4f90f
affix.js 4.68 KB