From 2506b2b56e5e1b5dfa82e058ab0e4f98fae88912 Mon Sep 17 00:00:00 2001 From: David Reese Date: Fri, 14 Oct 2016 09:50:15 -0400 Subject: [PATCH] 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. --- js/foundation.util.box.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.2