Cleanup
This commit is contained in:
parent
a45338809d
commit
5c678f52f1
|
@ -33,7 +33,7 @@ const setPosition = (wrapperEl, editorEl, selectedEl) => {
|
||||||
editorEl.style.bottom = `${containerHeight - annotationTop}px`;
|
editorEl.style.bottom = `${containerHeight - annotationTop}px`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if vertical flipping helped, push down if not
|
// Check if vertical flipp helped, push down if not
|
||||||
const currentOrientation = editorEl.children[1].getBoundingClientRect();
|
const currentOrientation = editorEl.children[1].getBoundingClientRect();
|
||||||
if (currentOrientation.top < 0) {
|
if (currentOrientation.top < 0) {
|
||||||
editorEl.style.top = `${-containerBounds.top}px`;
|
editorEl.style.top = `${-containerBounds.top}px`;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { Component, createRef } from 'react'
|
import React, { Component, createRef } from 'react';
|
||||||
import { useCombobox } from 'downshift'
|
import { useCombobox } from 'downshift';
|
||||||
|
|
||||||
export default class Autocomplete extends Component {
|
export default class Autocomplete extends Component {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue