From: flyingL123 Date: Wed, 25 May 2016 16:29:57 +0000 (-0400) Subject: Account for hOffset X-Git-Tag: v6.2.4-rc1~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8850%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Account for hOffset --- diff --git a/js/foundation.util.box.js b/js/foundation.util.box.js index ef56d0877..047ee6c39 100644 --- a/js/foundation.util.box.js +++ b/js/foundation.util.box.js @@ -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 } }