Timeline: use full row height with one series (#34532) (#34536)

(cherry picked from commit 11b2f0ee4d)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-21 00:28:01 +01:00
committed by GitHub
parent 0577e4b119
commit 34a1621a5c

View File

@@ -42,6 +42,9 @@ export class TimelineChart extends React.Component<TimelineProps> {
getTimeRange,
eventBus,
...this.props,
// When there is only one row, use the full space
rowHeight: alignedFrame.fields.length > 2 ? this.props.rowHeight : 1,
});
};