From afc5558f7e87259e9f40cb3243901048d942c538 Mon Sep 17 00:00:00 2001 From: Peng Lyu Date: Mon, 21 May 2018 12:08:20 -0700 Subject: [PATCH] fix build error for upstream merging --- .../parts/comments/electron-browser/commentThreadWidget.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/comments/electron-browser/commentThreadWidget.ts b/src/vs/workbench/parts/comments/electron-browser/commentThreadWidget.ts index a363aa8a857..5c287d96885 100644 --- a/src/vs/workbench/parts/comments/electron-browser/commentThreadWidget.ts +++ b/src/vs/workbench/parts/comments/electron-browser/commentThreadWidget.ts @@ -293,7 +293,7 @@ export class ReviewZoneWidget extends ZoneWidget { } protected _doLayout(heightInPixel: number, widthInPixel: number): void { - this._commentEditor.layout({ height: (this._commentEditor.isFocused() ? 5 : 1) * 18, width: widthInPixel - 20 /* margin */ }); + this._commentEditor.layout({ height: (this._commentEditor.hasWidgetFocus() ? 5 : 1) * 18, width: widthInPixel - 20 /* margin */ }); } display(lineNumber: number) { @@ -433,7 +433,7 @@ export class ReviewZoneWidget extends ZoneWidget { } }; - this._commentEditor.onDidBlurEditor(() => { + this._commentEditor.onDidBlurEditorWidget(() => { if (this._commentEditor.getModel().getValueLength() === 0 && dom.hasClass(this._commentForm, 'expand')) { dom.removeClass(this._commentForm, 'expand'); } -- GitLab