From 1f1a708388aa3742c3b5ed5017781648c790e79a Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Mon, 5 Jul 2021 21:06:17 +0200 Subject: [PATCH] set top postion to widow_padding --- web/src/components/RelativeModal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/RelativeModal.jsx b/web/src/components/RelativeModal.jsx index 2398f643f..7dd1bf76e 100644 --- a/web/src/components/RelativeModal.jsx +++ b/web/src/components/RelativeModal.jsx @@ -79,7 +79,7 @@ export default function RelativeModal({ } // too close to bottom if (top + menuHeight > windowHeight - WINDOW_PADDING + window.scrollY) { - newTop = relativeToY - menuHeight; + newTop = WINDOW_PADDING; } if (top <= WINDOW_PADDING + window.scrollY) {