Another attempt at getting ResizeObserver behavior right
This commit is contained in:
parent
7bf430f15c
commit
4c5e102095
|
@ -51,7 +51,7 @@ const Editor = props => {
|
|||
props.onAnnotationCreated(annotation.toAnnotation());
|
||||
|
||||
if (element.current) {
|
||||
setPosition(props.wrapperEl, element.current, props.selectedElement);
|
||||
// Note that ResizeObserver fires once when observation starts
|
||||
return initResizeObserver();
|
||||
}
|
||||
}, [ props.selectedElement, bounds(props.selectedElement) ]);
|
||||
|
|
Loading…
Reference in New Issue