ignore additionRow when overwriteRows is active & only activate overwriteRows if it is bigger

This commit is contained in:
chfhtw
2026-04-22 11:01:35 +02:00
parent 416451eb0b
commit 20f043abc6
+8 -7
View File
@@ -50,14 +50,15 @@ export default {
computed: {
// gridlogic
rows() {
if (this.additionalRow) {
if (this.overwriteRows !== null)
return this.overwriteRows + 1;
return this.grid ? (this.grid.h+1) : 1;
}
if (this.overwriteRows !== null)
const gridH = this.grid?.h || 1;
if (this.overwriteRows !== null && this.overwriteRows > gridH)
return this.overwriteRows;
return this.grid ? this.grid.h : 1;
if (this.additionalRow)
return this.grid ? gridH + 1 : 1;
return gridH;
},
gridStyle() {
return {