Adding view to parent only if not already added.

This commit is contained in:
Nedyalko Nikolov
2016-01-22 08:23:52 +02:00
parent 14c2e35730
commit f79600585a

View File

@ -244,7 +244,9 @@ export class TabView extends common.TabView {
}
item._parent = this;
this._addView(item.view, idx);
if (item.view.parent !== this) {
this._addView(item.view, idx);
}
tabItems.push(this.createTabItem(item));
});