]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix bug when having scrolltop=false, sticky top bar 7631/head
authorSylvio <sylvain@com-ocean.com>
Sat, 19 Dec 2015 11:02:51 +0000 (12:02 +0100)
committerSylvio <sylvain@com-ocean.com>
Sat, 19 Dec 2015 11:02:51 +0000 (12:02 +0100)
commit120d5550658b2af4cb5fc09c1745348ebdda9e2d
tree17a23bd7b2f182d7414b151b13b7ad5a7fde7f84
parent7ad066ee81e1c26e4ee8ac87a186a112ca61291c
Fix bug when having scrolltop=false, sticky top bar

Context :
- scrolltop option disabled
- sticky topbar
- topbar positionned not on the top of the page (ex: under a header, 100px from the top)

Bug : on small resolution, when clicking on the menu, the topbar is fixed top the top (class "fixed") and move to the top of the page instead of keeping its original position.

Resolution: The fixed class should not be enabled if the user don't scroll enough to have the top bar positionned at the top of the page.
js/foundation/foundation.topbar.js