From: Abdullah Salem Date: Tue, 19 Jan 2016 20:05:32 +0000 (+0300) Subject: Fixed the the top and bottom pane's alignment in RTL mode #7560 X-Git-Tag: v6.2.0~24^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dec7a581bc6b879a7afc8ec3ae9752ba32b1358a;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixed the the top and bottom pane's alignment in RTL mode #7560 --- diff --git a/js/foundation.util.box.js b/js/foundation.util.box.js index 3d0ce87d7..cb2756433 100644 --- a/js/foundation.util.box.js +++ b/js/foundation.util.box.js @@ -115,7 +115,7 @@ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) { switch (position) { case 'top': return { - left: $anchorDims.offset.left, + left: (Foundation.rtl() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width : $anchorDims.offset.left), left: $anchorDims.offset.left, top: $anchorDims.offset.top - ($eleDims.height + vOffset) } break; @@ -174,7 +174,7 @@ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) { break; default: return { - left: $anchorDims.offset.left, + left: (Foundation.rtl() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width : $anchorDims.offset.left), top: $anchorDims.offset.top + $anchorDims.height + vOffset } }