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
This commit is contained in:
Christopher Chedeau 2020-02-01 04:05:53 +00:00 committed by GitHub
parent 47f6328ae1
commit e50dc5dbed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",