From 413031bd376b7bba045add09c3160b07881997a8 Mon Sep 17 00:00:00 2001 From: Stanislav Lysak Date: Thu, 5 Sep 2024 14:31:21 +0300 Subject: [PATCH] dropdown fix --- .../src/components/atoms/DynamicPopover/DynamicPopover.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx b/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx index 77afcfff..08a07446 100644 --- a/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx +++ b/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx @@ -320,7 +320,7 @@ export const DynamicPopover = ({ } } - const top = window.scrollY + anchorRect.y + anchorHeight - popoverHeight + const top = window.innerHeight + anchorRect.y + anchorHeight - popoverHeight const left = anchorRect.x + anchorWidth - popoverWidth const horizontalClearance = popoverWidth + anchorWidth + additionalGap + 10 const verticalClearance = popoverHeight + anchorHeight + additionalGap + 10