set top postion to widow_padding

This commit is contained in:
Bernt Christian Egeland
2021-08-14 07:37:56 -05:00
committed by Blake Blackshear
parent b33f4e2dc6
commit 1f1a708388
+1 -1
View File
@@ -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) {