From 12003f84e1e295071da816921a64addfe5e677f3 Mon Sep 17 00:00:00 2001 From: karland Date: Wed, 26 Oct 2016 13:58:12 +0200 Subject: [PATCH] Fixes to sticky --- js/foundation.sticky.js | 2 +- test/visual/sticky/simple-menu.html | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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 @@ -- 2.47.2