Parcourir la source

set top postion to widow_padding

Bernt Christian Egeland il y a 3 ans
Parent
commit
1f1a708388
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      web/src/components/RelativeModal.jsx

+ 1 - 1
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) {