From 95208037c77d8389e6e185a4c976331490bc7e9b Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Mon, 14 Aug 2023 17:50:09 +0200 Subject: [PATCH] popover changes --- src/components/PopoverWithMeasuredContent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PopoverWithMeasuredContent.js b/src/components/PopoverWithMeasuredContent.js index 09643f6b4c12..492807274d1e 100644 --- a/src/components/PopoverWithMeasuredContent.js +++ b/src/components/PopoverWithMeasuredContent.js @@ -131,7 +131,7 @@ function PopoverWithMeasuredContent(props) { const verticalShift = computeVerticalShift(adjustedAnchorPosition.top, popoverHeight, windowHeight); const shiftedAnchorPosition = { left: adjustedAnchorPosition.left + horizontalShift, - top: adjustedAnchorPosition.top + verticalShift, + bottom: windowHeight - (adjustedAnchorPosition.top + popoverHeight) - verticalShift, }; return isContentMeasured ? ( - {props.children} + {props.children} ) : ( /*