diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 1023259..9395d93 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -62,8 +62,13 @@ export default class Editor extends Component { } componentDidMount() { + // Defaults to true + const autoPosition = + this.props.autoPosition === undefined ? true : this.props.autoPosition; + // Init observer (triggers setPosition once) - this.removeObserver = this.initResizeObserver(); + if (autoPosition) + this.removeObserver = this.initResizeObserver(); } componentWillUnmount() {