]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use position and not offset, position 1813/head
authorKorri <korrigan33@gmail.com>
Sun, 10 Mar 2013 00:40:00 +0000 (19:40 -0500)
committerKorri <korrigan33@gmail.com>
Sun, 10 Mar 2013 00:40:00 +0000 (19:40 -0500)
js/foundation/foundation.dropdown.js

index 24b35e12e7860a80edb9f16a0209715f249f96b0..49d6adb59523601e931a6c1770b582934b1e84dc 100644 (file)
@@ -86,7 +86,7 @@
     },
 
     css : function (dropdown, target) {
-      var offset = target.offset();
+      var position = target.position();
 
       if (this.small()) {
         dropdown.css({
           width: '95%',
           left: '2.5%',
           'max-width': 'none',
-          top: offset.top + this.outerHeight(target)
+          top: position.top + this.outerHeight(target)
         });
       } else {
         dropdown.attr('style', '').css({
           position : 'absolute',
-          top: offset.top + this.outerHeight(target),
-          left: offset.left
+          top: position.top + this.outerHeight(target),
+          left: position.left
         });
       }