Prometheus: fix popup positioning in monaco-based query-field (#38964)

* prometheus: monaco: fix popup positioning

* added explanation comment
This commit is contained in:
Gábor Farkas 2021-09-08 10:23:59 +02:00 committed by GitHub
parent e9631fdf7c
commit cbdba57924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,9 @@ const options: CodeEditorMonacoOptions = {
scrollBeyondLastLine: false, scrollBeyondLastLine: false,
renderLineHighlight: 'none', renderLineHighlight: 'none',
fontSize: 14, fontSize: 14,
// we need `fixedOverflowWidgets` because otherwise in grafana-dashboards
// the popup is clipped by the panel-visualizations.
fixedOverflowWidgets: true,
}; };
const MonacoQueryField = (props: Props) => { const MonacoQueryField = (props: Props) => {