Skip to content

Commit 362715b

Browse files
committed
Fix dialog items getting cut off
Fixes #336.
1 parent ec70ea6 commit 362715b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vscode/src/dialog.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ class Dialog {
315315
}
316316
buttonsNode.appendChild(confirmBtn);
317317
this.root.appendChild(buttonsNode);
318-
this.entryList.layout();
319318

320319
this.path = options.defaultPath || "/";
321320
}
@@ -391,6 +390,8 @@ class Dialog {
391390
return true;
392391
});
393392

393+
this.entryList.layout();
394+
394395
this.entryList.setChildren(null, items.map((i: DialogEntry): ITreeElement<DialogEntry> => ({ element: i })));
395396
this.entryList.domFocus();
396397
this.entryList.setFocus([null]);

0 commit comments

Comments
 (0)