This commit is contained in:
Rainer Simon 2020-06-03 15:27:05 +02:00
parent cd5f676ec0
commit 7bf430f15c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ const setPosition = (wrapperEl, editorEl, selectedEl) => {
editorEl.style.left = `${right - defaultOrientation.width + scrollX - containerBounds.left}px`;
}
if (defaultOrientation.bottom + scrollY > window.innerHeight) {
if (defaultOrientation.bottom > window.innerHeight) {
// Flip vertically
const annotationTop = top + scrollY; // Annotation bottom relative to parents
const containerHeight = containerBounds.bottom + scrollY;