]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixes to sticky 9298/head
authorkarland <anders-betrachtet@online.de>
Wed, 26 Oct 2016 11:58:12 +0000 (13:58 +0200)
committerkarland <anders-betrachtet@online.de>
Wed, 26 Oct 2016 11:58:12 +0000 (13:58 +0200)
js/foundation.sticky.js
test/visual/sticky/simple-menu.html

index 2261b748af0a22fde45bdcc541df27f6c6e5bd44..86e39159c6b231632b7b19780b41c662f30778e7 100644 (file)
@@ -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) {
index 9daa2facdd92c0cd6ecfb2764df0db9a5c78c956..20c189f5d5c91c76b3a816fd64923250b6f6c2b5 100644 (file)
@@ -8,10 +8,6 @@
   <link href="../assets/css/foundation.css" rel="stylesheet" />
 
   <style>
-    .container {
-      background-color: rgba(255, 0, 0, 0.7);
-    }
-    
     .menue {
       background-color: white;
       text-align: right;
     main .row {
       background: yellow;
     }
-
-    .first {
-      height: 20px;
-    }
   </style>
 
 </head>