From 82ce6e9729be00ad0fcf793ddeb5cbed9ebd07a3 Mon Sep 17 00:00:00 2001
From: Udo Walter
Date: Mon, 6 May 2019 02:13:52 +0000
Subject: [webapp/datatable] fix unnecessary vertical scrollbars

---
 webapp/src/components/DataTable.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'webapp/src/components/DataTable.vue')

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 () {
-- 
cgit v1.2.3-55-g7522

