未验证 提交 362715bb 编写于 作者: A Asher

Fix dialog items getting cut off

Fixes #336.
上级 ec70ea69
......@@ -315,7 +315,6 @@ class Dialog {
}
buttonsNode.appendChild(confirmBtn);
this.root.appendChild(buttonsNode);
this.entryList.layout();
this.path = options.defaultPath || "/";
}
......@@ -391,6 +390,8 @@ class Dialog {
return true;
});
this.entryList.layout();
this.entryList.setChildren(null, items.map((i: DialogEntry): ITreeElement<DialogEntry> => ({ element: i })));
this.entryList.domFocus();
this.entryList.setFocus([null]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册