diff --git a/packages/client/src/components/app/GridBlock.svelte b/packages/client/src/components/app/GridBlock.svelte index 44d8d52ef2..cf0ec76109 100644 --- a/packages/client/src/components/app/GridBlock.svelte +++ b/packages/client/src/components/app/GridBlock.svelte @@ -37,6 +37,7 @@ let grid let gridContext + let minHeight $: parsedColumns = getParsedColumns(columns) $: columnWhitelist = parsedColumns.filter(x => x.active).map(x => x.field) @@ -51,8 +52,6 @@ metadata: { dataSource: table }, }, ] - $: height = $component.styles?.normal?.height || "408px" - $: styles = getSanitisedStyles($component.styles) // Provide additional data context for live binding eval export const getAdditionalDataContext = () => { @@ -129,23 +128,17 @@ ) } - const getSanitisedStyles = styles => { - return { - ...styles, - normal: { - ...styles?.normal, - height: undefined, - }, - } - } - onMount(() => { gridContext = grid.getContext() + gridContext.minHeight.subscribe($height => (minHeight = $height)) }) -