set position of child tabs
This commit is contained in:
parent
7d3f967b1a
commit
acefddccb7
@ -2308,19 +2308,19 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
aChild = this.getTabById(aChild);
|
aChild = this.getTabById(aChild);
|
||||||
if (aChild)
|
if (aChild)
|
||||||
this.attachTabTo(aChild, aTab, {
|
this.attachTabTo(aChild, aTab, {
|
||||||
forceExpand : true, // to prevent to collapse the selected tab
|
forceExpand : true, // to prevent to collapse the selected tab
|
||||||
dontAnimate : true,
|
dontAnimate : true,
|
||||||
dontMove : true
|
insertBefore : this.getTabById(this.getTabValue(aChild, this.kINSERT_BEFORE))
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
this.collapseExpandSubtree(aTab, subTreeCollapsed, true);
|
this.collapseExpandSubtree(aTab, subTreeCollapsed, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateInsertionPositionInfo(aTab);
|
|
||||||
|
|
||||||
if (!alreadyRestored)
|
if (!alreadyRestored)
|
||||||
aTab.__treestyletab__structureRestored = true;
|
aTab.__treestyletab__structureRestored = true;
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
tabs.forEach(this.updateInsertionPositionInfo, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/* DOM Event Handling */
|
/* DOM Event Handling */
|
||||||
|
Loading…
Reference in New Issue
Block a user