Skip to content

Commit

Permalink
[Visualize] Fixes the unclickable panel menu for all the pie charts (#…
Browse files Browse the repository at this point in the history
…129290) (#129330)

(cherry picked from commit 32599aa)

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
  • Loading branch information
kibanamachine and stratoula authored Apr 4, 2022
1 parent d2c30b0 commit e991edb
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import React, { lazy } from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { I18nProvider } from '@kbn/i18n-react';
import { css } from '@emotion/react';
import { i18n } from '@kbn/i18n';
import { ExpressionRenderDefinition } from '../../../../expressions/public';
import type { PersistedState } from '../../../../visualizations/public';
Expand All @@ -32,6 +33,12 @@ export const strings = {
const LazyPartitionVisComponent = lazy(() => import('../components/partition_vis_component'));
const PartitionVisComponent = withSuspense(LazyPartitionVisComponent);

const partitionVisRenderer = css({
position: 'relative',
width: '100%',
height: '100%',
});

export const getPartitionVisRenderer: (
deps: VisTypePieDependencies
) => ExpressionRenderDefinition<RenderValue> = ({ theme, palettes, getStartDeps }) => ({
Expand All @@ -50,7 +57,7 @@ export const getPartitionVisRenderer: (
render(
<I18nProvider>
<KibanaThemeProvider theme$={services.kibanaTheme.theme$}>
<div css={{ height: '100%' }}>
<div css={partitionVisRenderer}>
<PartitionVisComponent
chartsThemeService={theme}
palettesRegistry={palettesRegistry}
Expand Down

0 comments on commit e991edb

Please sign in to comment.