Add filter_box full height (#14657)

This commit is contained in:
Geido 2021-05-19 10:13:16 +03:00 committed by GitHub
parent c2bd684454
commit a0881fb157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,9 +183,11 @@ const ExploreChartPanel = props => {
}; };
const renderChart = useCallback(() => { const renderChart = useCallback(() => {
const { chart } = props; const { chart, vizType } = props;
const newHeight = const newHeight =
calcSectionHeight(splitSizes[0]) - CHART_PANEL_PADDING_VERTICAL; vizType === 'filter_box'
? calcSectionHeight(100) - CHART_PANEL_PADDING_VERTICAL
: calcSectionHeight(splitSizes[0]) - CHART_PANEL_PADDING_VERTICAL;
const chartWidth = chartPanelWidth - CHART_PANEL_PADDING_HORIZ; const chartWidth = chartPanelWidth - CHART_PANEL_PADDING_HORIZ;
return ( return (
chartWidth > 0 && ( chartWidth > 0 && (