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

This commit is contained in:
Ryan McKinley 2021-05-20 16:03:23 -07:00 committed by GitHub
parent 1e024f22b8
commit 11b2f0ee4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,
});
};