summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/src/components/DataTable.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/src/components/DataTable.vue b/webapp/src/components/DataTable.vue
index 94ee5a6..94bd524 100644
--- a/webapp/src/components/DataTable.vue
+++ b/webapp/src/components/DataTable.vue
@@ -290,7 +290,9 @@ export default {
},
scrollerStyle () {
const style = { '--min-table-width': this.computedMinWidth }
- if (this.computedRowCount > 0) style.height = (Math.max(Math.min(this.computedRowCount, this.filteredRows.length), 1) * 48 + 58) + 'px'
+ if (this.computedRowCount > 0 && this.computedRowCount < this.filteredRows.length) {
+ style.height = (Math.max(Math.min(this.computedRowCount, this.filteredRows.length), 1) * 48 + 58) + 'px'
+ }
return style
},
rows () {