diff --git a/app/client/components/ViewLayout.ts b/app/client/components/ViewLayout.ts index b18ac14a..53cff819 100644 --- a/app/client/components/ViewLayout.ts +++ b/app/client/components/ViewLayout.ts @@ -106,7 +106,11 @@ export class ViewLayout extends DisposableWithEvents implements IDomComponent { this._isResizing.set(false); layoutSaveDelay.schedule(1000, () => { if (!this._layout) { return; } - (this.viewModel.layoutSpecObj as any).setAndSave(this._layout.getLayoutSpec()); + + // Only save layout changes when the document isn't read-only. + if (!this.gristDoc.isReadonly.get()) { + (this.viewModel.layoutSpecObj as any).setAndSave(this._layout.getLayoutSpec()); + } this._onResize(); }); });