]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Account for hOffset 8850/head
authorflyingL123 <leff.michael@gmail.com>
Wed, 25 May 2016 16:29:57 +0000 (12:29 -0400)
committerflyingL123 <leff.michael@gmail.com>
Wed, 25 May 2016 16:29:57 +0000 (12:29 -0400)
js/foundation.util.box.js

index ef56d0877b5ac141bfe0bf45abeb4e5adf40f849..047ee6c398a740c8a0afe4f2c55c3d1d18fcbf0a 100644 (file)
@@ -186,7 +186,7 @@ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) {
       break;
     default:
       return {
-        left: (Foundation.rtl() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width : $anchorDims.offset.left),
+        left: (Foundation.rtl() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width : $anchorDims.offset.left + hOffset),
         top: $anchorDims.offset.top + $anchorDims.height + vOffset
       }
   }