summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorUdo Walter2019-05-06 04:13:52 +0200
committerUdo Walter2019-05-06 04:13:52 +0200
commit82ce6e9729be00ad0fcf793ddeb5cbed9ebd07a3 (patch)
tree602b0bec00311798e5b9ce8b02d94bd385bb4b0d /webapp
parent[ipxe builder] Merge efi and bios ipxe builder to one tab & add parameters ui (diff)
downloadbas-82ce6e9729be00ad0fcf793ddeb5cbed9ebd07a3.tar.gz
bas-82ce6e9729be00ad0fcf793ddeb5cbed9ebd07a3.tar.xz
bas-82ce6e9729be00ad0fcf793ddeb5cbed9ebd07a3.zip
[webapp/datatable] fix unnecessary vertical scrollbars
Diffstat (limited to 'webapp')
-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 () {