Browse Source

browser support node content positioning

Aykut Saraç 3 years ago
parent
commit
615de0c157
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/containers/LiveEditor/CustomNode/styles.tsx

+ 1 - 2
src/containers/LiveEditor/CustomNode/styles.tsx

@@ -1,7 +1,7 @@
 import styled from "styled-components";
 
 export const StyledTextWrapper = styled.div`
-  position: absolute;
+  position: fixed;
   display: flex;
   justify-content: center;
   align-items: center;
@@ -28,7 +28,6 @@ export const StyledForeignObject = styled.foreignObject<{
   width: number;
   height: number;
 }>`
-  position: "relative" !important;
   pointer-events: "none" !important;
   width: ${({ width }) => width + "px"};
   height: ${({ height }) => height + "px"};