浏览代码

set top postion to widow_padding

Bernt Christian Egeland 3 年之前
父节点
当前提交
1f1a708388
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {