Minor tweak to enable editor to move with changing annotation bounds
This commit is contained in:
parent
64699c1137
commit
83d7ac538b
|
@ -22,7 +22,7 @@ const Editor = props => {
|
||||||
|
|
||||||
if (element.current)
|
if (element.current)
|
||||||
setPosition(props.wrapperEl, element.current, props.bounds);
|
setPosition(props.wrapperEl, element.current, props.bounds);
|
||||||
}, [ props.annotation ]);
|
}, [ props.annotation, props.bounds ]);
|
||||||
|
|
||||||
const onAppendBody = body => setCurrentAnnotation(
|
const onAppendBody = body => setCurrentAnnotation(
|
||||||
currentAnnotation.clone({
|
currentAnnotation.clone({
|
||||||
|
|
Loading…
Reference in New Issue