revert
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5171 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
b6e3d53b91
commit
e378ec28f9
@ -1853,6 +1853,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
if (parent) {
|
if (parent) {
|
||||||
this.attachTabTo(tab, parent, {
|
this.attachTabTo(tab, parent, {
|
||||||
dontExpand : true,
|
dontExpand : true,
|
||||||
|
insertBefore : nextTab,
|
||||||
dontUpdateIndent : true,
|
dontUpdateIndent : true,
|
||||||
dontAnimate : aWithoutAnimation
|
dontAnimate : aWithoutAnimation
|
||||||
});
|
});
|
||||||
@ -1872,10 +1873,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!parent) {
|
if (!parent) {
|
||||||
if (nextTab == tab)
|
if (!nextTab) nextTab = this.getNextTab(tab);
|
||||||
nextTab = this.getNextSiblingTab(tab);
|
|
||||||
else if (!nextTab)
|
|
||||||
nextTab = this.getNextTab(tab);
|
|
||||||
let parentOfNext = this.getParentTab(nextTab);
|
let parentOfNext = this.getParentTab(nextTab);
|
||||||
let newPos = -1;
|
let newPos = -1;
|
||||||
if (parentOfNext) {
|
if (parentOfNext) {
|
||||||
@ -1886,9 +1884,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
newPos = nextTab._tPos;
|
newPos = nextTab._tPos;
|
||||||
if (newPos > tab._tPos) newPos--;
|
if (newPos > tab._tPos) newPos--;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
newPos = this.getTabs(b).snapshotLength - 1;
|
|
||||||
}
|
|
||||||
if (newPos > -1)
|
if (newPos > -1)
|
||||||
b.moveTabTo(tab, newPos);
|
b.moveTabTo(tab, newPos);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user