Minor tweak to enable editor to move with changing annotation bounds

This commit is contained in:
Rainer Simon 2020-04-11 17:44:13 +02:00
parent 64699c1137
commit 83d7ac538b
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const Editor = props => {
if (element.current)
setPosition(props.wrapperEl, element.current, props.bounds);
}, [ props.annotation ]);
}, [ props.annotation, props.bounds ]);
const onAppendBody = body => setCurrentAnnotation(
currentAnnotation.clone({