From 2a8aebeb165d0bac644ed8e71bfd44e74aa94cfc Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 13 Oct 2020 12:15:44 +0200 Subject: [PATCH] fixes height issue with grid component --- packages/standard-components/components.json | 5 ++++- packages/standard-components/src/DataGrid/Component.svelte | 7 ++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index 8464729993..ae547510d6 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -238,7 +238,10 @@ "material" ] }, - "height": "number", + "height": { + "type": "number", + "default": "500" + }, "pagination": "bool" } }, diff --git a/packages/standard-components/src/DataGrid/Component.svelte b/packages/standard-components/src/DataGrid/Component.svelte index 3a0d13d35d..3656eb740a 100644 --- a/packages/standard-components/src/DataGrid/Component.svelte +++ b/packages/standard-components/src/DataGrid/Component.svelte @@ -18,7 +18,7 @@ export let datasource = {} export let editable export let theme = "alpine" - export let height + export let height = 500 export let pagination let dataLoaded = false @@ -115,7 +115,7 @@ href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" /> -
+
{#if dataLoaded} {#if editable}
@@ -139,9 +139,6 @@