diff --git a/static/brush-editor.js b/static/brush-editor.js index 0fb4d26..7fbbaac 100644 --- a/static/brush-editor.js +++ b/static/brush-editor.js @@ -31,6 +31,7 @@ export class BrushEditor extends HTMLElement { }); requestAnimationFrame(() => this.#resizeTextArea()); document.fonts.addEventListener("loadingdone", () => this.#resizeTextArea()); + new ResizeObserver(() => this.#resizeTextArea()).observe(this); this.errorHeader = this.appendChild(document.createElement("h1")); this.errorHeader.classList.add("error-header");