From e50dc5dbed12ef4bb6afb73d4bdb412c966de30f Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 1 Feb 2020 04:05:53 +0000 Subject: [PATCH] Fix wysiwyg text overflow (#650) By using position: fixed like the rest of the UI components, it will no longer make the body change size and have bad side effects like scrolling. Fixes #365 --- src/element/textWysiwyg.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index 7d8aede6..584af1c6 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: "absolute", + position: "fixed", opacity: opacity / 100, top: y + "px", left: x + "px",