Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

browser support node content positioning

Aykut Saraç615de0c157b4
diff --git a/src/containers/LiveEditor/CustomNode/styles.tsx b/src/containers/LiveEditor/CustomNode/styles.tsx
index adfcac19..df4b50ec 100644
--- a/src/containers/LiveEditor/CustomNode/styles.tsx
+++ b/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"};