diff --git a/src/renderer/src/components/base/base-editor.tsx b/src/renderer/src/components/base/base-editor.tsx index 5b9e4c3..79c7160 100644 --- a/src/renderer/src/components/base/base-editor.tsx +++ b/src/renderer/src/components/base/base-editor.tsx @@ -105,7 +105,9 @@ export const BaseEditor: React.FC = (props) => { useEffect(() => { window.onresize = (): void => { - editorRef.current?.layout() + setTimeout(() => { + editorRef.current?.layout() + }, 0) } return (): void => { window.onresize = null