diff --git a/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx b/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx index a6775cfde15..a14a92dbaad 100644 --- a/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx +++ b/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import { css, cx } from 'emotion'; import { GrafanaTheme, PanelData, LoadingState, DefaultTimeRange, PanelEvents } from '@grafana/data'; -import { stylesFactory, Forms } from '@grafana/ui'; +import { stylesFactory, Forms, CustomScrollbar } from '@grafana/ui'; import config from 'app/core/config'; import { PanelModel } from '../../state/PanelModel'; @@ -52,6 +52,10 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => { cursor: row-resize; ` ), + noScrollPaneContent: css` + height: 100%; + overflow: hidden; + `, }; }); @@ -171,8 +175,9 @@ export class PanelEditor extends PureComponent { (document.body.style.cursor = 'col-resize')} onDragFinished={this.onDragFinished} @@ -180,7 +185,8 @@ export class PanelEditor extends PureComponent { (document.body.style.cursor = 'row-resize')} onDragFinished={this.onDragFinished} @@ -195,12 +201,14 @@ export class PanelEditor extends PureComponent { isInView={true} /> -
+
-
-
TODO: viz settings
+
+ +
Viz settings
+
diff --git a/public/sass/components/_panel_editor.scss b/public/sass/components/_panel_editor.scss index 06270a33bd9..e53303d2841 100644 --- a/public/sass/components/_panel_editor.scss +++ b/public/sass/components/_panel_editor.scss @@ -65,6 +65,8 @@ min-width: 0; display: flex; min-height: 0; + height: 100%; + overflow: hidden; } .panel-editor__content {