From d7e509979aa0bc7707fed234bc456e0047fa135a Mon Sep 17 00:00:00 2001 From: chfhtw Date: Wed, 22 Apr 2026 09:32:53 +0200 Subject: [PATCH] account for additionalRow prop when computing placeholders (missed this in 262b17024422f9d6619483afd62f337841246653) --- public/js/components/Drop/Grid.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/public/js/components/Drop/Grid.js b/public/js/components/Drop/Grid.js index 130838065..1115e6ed6 100644 --- a/public/js/components/Drop/Grid.js +++ b/public/js/components/Drop/Grid.js @@ -108,7 +108,7 @@ export default { }, // item pipeline placeholders() { // empty tiles - return this.grid.getFreeSlots().map((item, index) => { + let placeholders = this.grid.getFreeSlots().map((item, index) => { return { x: item.x, y: item.y, @@ -120,6 +120,22 @@ export default { } }; }); + + if (this.additionalRowComputed) { + for (var x = 0; x < this.cols; x++) + placeholders.push({ + x, + y: this.grid.h, + h: 1, + w: 1, + placeholder: true, + data: { + id: 'placeholder_' + placeholders.length + } + }); + } + + return placeholders; }, indexedItems() { // indexed return this.items.map(