Open new tab as the next sibling tab correctly, even if the current tab is the last child #1143

This commit is contained in:
YUKI Hiroshi 2016-07-06 18:52:09 +09:00
parent 0e3acd003d
commit 2b13d9996d

View File

@ -1410,7 +1410,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
return false; return false;
var parentTab = this.getParentTab(tab); var parentTab = this.getParentTab(tab);
var nextTab = this.getNextSiblingTab(tab); var nextTab = this.getNextSiblingTab(tab) || this.getNextTab(tab);
if (parentTab) { if (parentTab) {
/** /**
* If the base tab has a parent, open the new tab as a child of * If the base tab has a parent, open the new tab as a child of