Specify "insertAfter" reference correctly

This commit is contained in:
YUKI Hiroshi 2016-07-07 18:45:06 +09:00
parent f78769549a
commit 2ecbf63c23

View File

@ -1420,7 +1420,6 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
var parentTab = this.getParentTab(tab);
var nextTab = this.getNextSiblingTab(tab) || this.getNextTab(tab);
var previousTab = this.getPreviousTab(tab);
if (parentTab) {
/**
* If the base tab has a parent, open the new tab as a child of
@ -1428,7 +1427,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
*/
return this.readyToOpenChildTab(parentTab, false, {
insertBefore : nextTab,
insertAfter : previousTab
insertAfter : tab
});
}
else {