1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-29 05:35:25 +00:00

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

View File

@ -315,7 +315,6 @@ class Dialog {
} }
buttonsNode.appendChild(confirmBtn); buttonsNode.appendChild(confirmBtn);
this.root.appendChild(buttonsNode); this.root.appendChild(buttonsNode);
this.entryList.layout();
this.path = options.defaultPath || "/"; this.path = options.defaultPath || "/";
} }
@ -391,6 +390,8 @@ class Dialog {
return true; return true;
}); });
this.entryList.layout();
this.entryList.setChildren(null, items.map((i: DialogEntry): ITreeElement<DialogEntry> => ({ element: i }))); this.entryList.setChildren(null, items.map((i: DialogEntry): ITreeElement<DialogEntry> => ({ element: i })));
this.entryList.domFocus(); this.entryList.domFocus();
this.entryList.setFocus([null]); this.entryList.setFocus([null]);