diff --git a/src/editor/setPosition.js b/src/editor/setPosition.js index 9149699..02d9c1c 100644 --- a/src/editor/setPosition.js +++ b/src/editor/setPosition.js @@ -15,7 +15,7 @@ const setPosition = (wrapperEl, editorEl, selectedEl) => { editorEl.style.top = `${top + height - containerBounds.top}px`; editorEl.style.left = `${left - containerBounds.left}px`; - const defaultOrientation = editorEl.getBoundingClientRect(); + const defaultOrientation = editorEl.children[1].getBoundingClientRect(); if (defaultOrientation.right > window.innerWidth) { // Default bounds clipped - flip horizontally