]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fixes #7449 [Magellan] Last menu element active on load if body has no margin 7450/head
authorAfonso Duarte <afonsomartins@gmail.com>
Tue, 8 Dec 2015 13:53:15 +0000 (13:53 +0000)
committerAfonso Duarte <afonsomartins@gmail.com>
Tue, 8 Dec 2015 14:01:45 +0000 (14:01 +0000)
commitefb1ae6422fbf70054fc5b7571bde95d5275a50f
treee570d3dbc4322e9b4c4636387361bc1210a0ff74
parentfdd0bae40bc09203add294fb0c7189be84017e91
Fixes #7449 [Magellan] Last menu element active on load if body has no margin

Uses document.documentElement.clientHeight to calculate viewport height instead of document.body.clientHeight. See http://jsfiddle.net/tzdcx/1/ for differences between the two.
js/foundation.magellan.js