diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index d7056272..bbe405c4 100644 --- a/src/element/textWysiwyg.tsx +++ b/src/element/textWysiwyg.tsx @@ -39,7 +39,7 @@ export function textWysiwyg({ Object.assign(editable.style, { color: strokeColor, - position: "fixed", + position: "absolute", opacity: opacity / 100, top: y + "px", left: x + "px", diff --git a/src/styles.scss b/src/styles.scss index c7f57ecc..6c097435 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -3,6 +3,10 @@ body { margin: 0; font-family: Arial, Helvetica, sans-serif; + overflow: hidden; + position: fixed; + width: 100%; + height: 100%; color: var(--text-color-primary); }