From 83d7ac538b5df38c7887d616e076c1b71c4e3cbe Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sat, 11 Apr 2020 17:44:13 +0200 Subject: [PATCH] Minor tweak to enable editor to move with changing annotation bounds --- src/editor/Editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index cd39560..70e043e 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -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({