From 09bed3721d08d92abc5ad5b99bb2d49d3f55b408 Mon Sep 17 00:00:00 2001 From: Sergej-Vlasov <37613182+Sergej-Vlasov@users.noreply.github.com> Date: Thu, 15 May 2025 12:58:32 +0100 Subject: [PATCH] TabsLayoutManagerRendere: Fix custom grid not rendering inside a tab (#105452) fix custom grid not rendering inside a tab --- .../scene/layout-tabs/TabsLayoutManagerRenderer.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard-scene/scene/layout-tabs/TabsLayoutManagerRenderer.tsx b/public/app/features/dashboard-scene/scene/layout-tabs/TabsLayoutManagerRenderer.tsx index 9dc6fde9595..64f495a4734 100644 --- a/public/app/features/dashboard-scene/scene/layout-tabs/TabsLayoutManagerRenderer.tsx +++ b/public/app/features/dashboard-scene/scene/layout-tabs/TabsLayoutManagerRenderer.tsx @@ -117,7 +117,10 @@ const getStyles = (theme: GrafanaTheme2) => ({ display: 'flex', flexDirection: 'column', flex: 1, - minHeight: 0, + // Without this min height, the custom grid (SceneGridLayout) wont render + // Should be bigger than paddingTop value + // consist of paddingTop + 0.125 = 9px + minHeight: theme.spacing(1 + 0.125), paddingTop: theme.spacing(1), }), });