From 34a1621a5ca54c0156fa8fcc1196756fdc25f0d4 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 21 May 2021 00:28:01 +0100 Subject: [PATCH] Timeline: use full row height with one series (#34532) (#34536) (cherry picked from commit 11b2f0ee4d3f2d22a0a93cbb0fe926a24933b0db) Co-authored-by: Ryan McKinley --- public/app/plugins/panel/state-timeline/TimelineChart.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/plugins/panel/state-timeline/TimelineChart.tsx b/public/app/plugins/panel/state-timeline/TimelineChart.tsx index 3fb00b81571..e78042e3748 100755 --- a/public/app/plugins/panel/state-timeline/TimelineChart.tsx +++ b/public/app/plugins/panel/state-timeline/TimelineChart.tsx @@ -42,6 +42,9 @@ export class TimelineChart extends React.Component { getTimeRange, eventBus, ...this.props, + + // When there is only one row, use the full space + rowHeight: alignedFrame.fields.length > 2 ? this.props.rowHeight : 1, }); };