]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Changing from window.outerWidth to window.innerWidth as positioning should be done... 6264/head
authorse7 <se7@users.noreply.github.com>
Sat, 7 Feb 2015 01:14:18 +0000 (17:14 -0800)
committerse7 <se7@users.noreply.github.com>
Sat, 7 Feb 2015 01:14:18 +0000 (17:14 -0800)
js/foundation/foundation.dropdown.js

index 678ee14f5374f259286af4b4cbf7be8a72866c45..bbe1b1787bf57eb89900fb12ccf73f28b05ab979 100644 (file)
         if (document.getElementsByClassName('row')[0]) {
           actualBodyWidth = document.getElementsByClassName('row')[0].clientWidth;
         } else {
-          actualBodyWidth = window.outerWidth;
+          actualBodyWidth = window.innerWidth;
         }
 
-        var actualMarginWidth = (window.outerWidth - actualBodyWidth) / 2;
+        var actualMarginWidth = (window.innerWidth - actualBodyWidth) / 2;
         var actualBoundary = actualBodyWidth;
 
         if (!this.hasClass('mega')) {
           //miss top
           if (t.offset().top <= this.outerHeight()) {
             p.missTop = true;
-            actualBoundary = window.outerWidth - actualMarginWidth;
+            actualBoundary = window.innerWidth - actualMarginWidth;
             p.leftRightFlag = true;
           }