Removed debug messages

This commit is contained in:
Rainer Simon 2020-06-03 15:18:12 +02:00
parent b33819ed35
commit cd5f676ec0
1 changed files with 0 additions and 3 deletions

View File

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