From: karland Date: Wed, 26 Oct 2016 11:58:12 +0000 (+0200) Subject: Fixes to sticky X-Git-Tag: v6.3-rc1~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9298%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixes to sticky --- diff --git a/js/foundation.sticky.js b/js/foundation.sticky.js index 2261b748a..86e39159c 100644 --- a/js/foundation.sticky.js +++ b/js/foundation.sticky.js @@ -273,7 +273,7 @@ class Sticky { var _this = this, newElemWidth = this.$container[0].getBoundingClientRect().width, comp = window.getComputedStyle(this.$container[0]), - pdngl = parseInt(comp['padding-right'], 10), + pdngl = parseInt(comp['padding-left'], 10), pdngr = parseInt(comp['padding-right'], 10); if (this.$anchor && this.$anchor.length) { diff --git a/test/visual/sticky/simple-menu.html b/test/visual/sticky/simple-menu.html index 9daa2facd..20c189f5d 100644 --- a/test/visual/sticky/simple-menu.html +++ b/test/visual/sticky/simple-menu.html @@ -8,10 +8,6 @@