From 2a86a70386febfed0f0786b8d7f7ec43e60cf6e8 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Thu, 16 Apr 2026 11:24:03 +0200 Subject: [PATCH] gridlogic: save width & height on move action similar to resize action (see: 88c4a04aea3cd187ffd23a6c134b19147181b300) --- public/js/composables/GridLogic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/composables/GridLogic.js b/public/js/composables/GridLogic.js index a42c853a1..effd7509f 100644 --- a/public/js/composables/GridLogic.js +++ b/public/js/composables/GridLogic.js @@ -140,7 +140,7 @@ class GridLogic { const updates = this.add(currItem, prefer); if (updates) - updates[item.index] = {index: item.index, x, y}; + updates[item.index] = { index: item.index, x, y, w: item.w, h: item.h }; return updates; } @@ -156,7 +156,7 @@ class GridLogic { const updates = this.add(currItem); if(updates) - updates[item.index] = {index: item.index, w, h, x:item.x, y:item.y, resize:true}; + updates[item.index] = { index: item.index, w, h, x: item.x, y: item.y, resize:true }; return updates; }