From f632886d0810e879f75e94ae77330fe18fa0cfcb Mon Sep 17 00:00:00 2001 From: Evgeniy Vovas Date: Sat, 11 Apr 2026 01:56:41 +0200 Subject: [PATCH] Fix row assignment to update engine's maxRow when set row --- src/gridstack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gridstack.ts b/src/gridstack.ts index 2d6538476..091dae295 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -1508,7 +1508,7 @@ export class GridStack { if (o.disableResize !== undefined && !o.staticGrid) this.enableResize(!o.disableResize); if (o.float !== undefined) this.float(o.float); if (o.row !== undefined) { - opts.minRow = opts.maxRow = opts.row = o.row; + opts.minRow = opts.maxRow = this.engine.maxRow = opts.row = o.row; this._updateContainerHeight(); } else { if (o.minRow !== undefined) { opts.minRow = o.minRow; this._updateContainerHeight(); }