diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index e214770d2..93aff289a 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -117,7 +117,15 @@ const $props = defineProps({ }, tableHeight: { type: String, - default: '90vh', + default: () => { + let height = 100; + Array.from(document.querySelectorAll('[role="toolbar"]')) + .filter((element) => window.getComputedStyle(element).display !== 'none') + .forEach(() => { + height -= 10; + }); + return height + 'vh'; + }, }, footer: { type: Boolean, @@ -627,6 +635,7 @@ const rowCtrlClickFunction = computed(() => { });