提交 85ac36ee 编写于 作者: R Ramya Achutha Rao

layoutContentWidget gets called after show(), so not needed in updateListHeight

上级 eba8653b
......@@ -976,7 +976,7 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
return SuggestWidget.ID;
}
private updateListHeight(): number {
private updateListHeight(): void {
let height = 0;
if (this.state === State.Empty || this.state === State.Loading) {
......@@ -989,10 +989,6 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
this.element.style.lineHeight = `${this.unfocusedHeight}px`;
this.listElement.style.height = `${height}px`;
this.list.layout(height);
this.editor.layoutContentWidget(this);
return height;
}
private adjustDocsPosition() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册