Should fix dynamic positioning issue

This commit is contained in:
Rainer Simon 2021-04-01 13:45:17 +02:00
parent ec45406b1c
commit 0c9e7fba1a
1 changed files with 1 additions and 1 deletions

View File

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