浏览代码

make relative

dwelle 4 年之前
父节点
当前提交
154f7bd8e5
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 11 0
      src/css/styles.scss
  2. 1 1
      src/element/textWysiwyg.tsx

+ 11 - 0
src/css/styles.scss

@@ -575,3 +575,14 @@
     }
     }
   }
   }
 }
 }
+
+.excalidraw-textEditorContainer {
+  overflow: hidden;
+  position: absolute;
+  height: 100%;
+  width: 100%;
+  pointer-events: none;
+  textarea {
+    pointer-events: all;
+  }
+}

+ 1 - 1
src/element/textWysiwyg.tsx

@@ -93,7 +93,7 @@ export const textWysiwyg = ({
   editable.wrap = "off";
   editable.wrap = "off";
 
 
   Object.assign(editable.style, {
   Object.assign(editable.style, {
-    position: "fixed",
+    position: "relative",
     display: "inline-block",
     display: "inline-block",
     minHeight: "1em",
     minHeight: "1em",
     backfaceVisibility: "hidden",
     backfaceVisibility: "hidden",