Bugfix
This commit is contained in:
parent
cd5f676ec0
commit
7bf430f15c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue