Fix dialog items getting cut off

Fixes #336.
This commit is contained in:
Asher 2019-06-06 14:57:03 -05:00
parent ec70ea6994
commit 362715bbeb
No known key found for this signature in database
GPG Key ID: 7BB4BA9C783D2BBC
1 changed files with 2 additions and 1 deletions

View File

@ -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]);