From: David Reese Date: Fri, 14 Oct 2016 13:50:15 +0000 (-0400) Subject: Allow vOffset option in floated dropdown alignment X-Git-Tag: v6.3-rc1~47^2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9257%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Allow vOffset option in floated dropdown alignment Left-bottom and right-bottom were added recently but the vOffset option was left out; since the default positioning (which would correspond to `bottom`) adds vOffset, seems like right-bottom and left-bottom should too. --- diff --git a/js/foundation.util.box.js b/js/foundation.util.box.js index 0aca82c84..f734a0cfb 100644 --- a/js/foundation.util.box.js +++ b/js/foundation.util.box.js @@ -175,13 +175,13 @@ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) { case 'left bottom': return { left: $anchorDims.offset.left, - top: $anchorDims.offset.top + $anchorDims.height + top: $anchorDims.offset.top + $anchorDims.height + vOffset }; break; case 'right bottom': return { left: $anchorDims.offset.left + $anchorDims.width + hOffset - $eleDims.width, - top: $anchorDims.offset.top + $anchorDims.height + top: $anchorDims.offset.top + $anchorDims.height + vOffset }; break; default: