diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 8db3e283..9d0b5cea 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -49,6 +49,9 @@ class Editor extends React.Component { componentDidMount(): void { window.addEventListener('storage', this.onStorage); + // scroll bar is broken unless we do this when there is an ancestor + // that resizes things during load. + setTimeout(() => this.editorRef.current?.editor.resize(), 0); } componentWillUnmount(): void {