Inspect: Use AutoSizer for managing width for content in tabs. (#21511)

* wrap content in autosizer

* replace lib

* removing react-virtualized, correct type in editor.ts

* remove caret

* remove dep from grafana/ui and remove story util
This commit is contained in:
Peter Holmberg
2020-01-16 11:11:33 +01:00
committed by GitHub
parent 18fda3b8b4
commit 43dbbe51f0
8 changed files with 39 additions and 60 deletions

View File

@@ -1,6 +1,7 @@
// Libraries
import React, { PureComponent } from 'react';
import classNames from 'classnames';
import AutoSizer from 'react-virtualized-auto-sizer';
// Utils & Services
import { getAngularLoader, AngularComponent } from '@grafana/runtime';
@@ -16,7 +17,6 @@ import { PanelResizer } from './PanelResizer';
// Types
import { PanelModel, DashboardModel } from '../state';
import { PanelPluginMeta, PanelPlugin } from '@grafana/data';
import { AutoSizer } from 'react-virtualized';
export interface Props {
panel: PanelModel;