account for additionalRow prop when computing placeholders (missed this in 262b170244)

This commit is contained in:
chfhtw
2026-04-22 09:32:53 +02:00
parent 91a5b2d4fc
commit d7e509979a
+17 -1
View File
@@ -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(