From 6d4d728dce4efe8c45e1278412cf8ce70ea2510e Mon Sep 17 00:00:00 2001 From: spacedragon Date: Mon, 8 Apr 2019 11:05:33 +0800 Subject: [PATCH] [Code] fix line height changed after find reference is open --- x-pack/plugins/code/public/components/editor/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/code/public/components/editor/editor.tsx b/x-pack/plugins/code/public/components/editor/editor.tsx index 3e3b29bb18239..8491aefbb0991 100644 --- a/x-pack/plugins/code/public/components/editor/editor.tsx +++ b/x-pack/plugins/code/public/components/editor/editor.tsx @@ -104,7 +104,7 @@ export class EditorComponent extends React.Component { this.monaco.editor.updateOptions({ lineHeight: 38 }); } else if (!this.props.showBlame) { this.destroyBlameWidgets(); - this.monaco.editor.updateOptions({ lineHeight: 24 }); + this.monaco.editor.updateOptions({ lineHeight: 18 }); } if (prevProps.blames !== this.props.blames && this.props.showBlame) { this.loadBlame(this.props.blames);