提交 cb5e896e 编写于 作者: J Joao Moreno

splitview: fix bad appendChild

上级 18ab4c42
......@@ -81,7 +81,7 @@ export class SplitView implements IDisposable {
// Add view
const container = dom.$('.split-view-view');
if (this.viewItems.length === 1) {
if (index === this.viewItems.length) {
this.el.appendChild(container);
} else {
this.el.insertBefore(container, this.el.children.item(index));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册