ルートのタブの並び順が壊れることがあったのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5172 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
e378ec28f9
commit
66f9e4deb8
@ -1920,15 +1920,13 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this.getNextSiblingTab(aTab) ;
|
this.getNextSiblingTab(aTab) ;
|
||||||
if (nextTab == this.getNextSiblingTab(aChild)) return;
|
if (nextTab == this.getNextSiblingTab(aChild)) return;
|
||||||
|
|
||||||
let newPos;
|
let newPos = -1;
|
||||||
if (nextTab) {
|
if (nextTab) {
|
||||||
newPos = nextTab._tPos;
|
newPos = nextTab._tPos;
|
||||||
if (newPos > aChild._tPos) newPos--;
|
if (newPos > aChild._tPos) newPos--;
|
||||||
}
|
}
|
||||||
else {
|
if (newPos > -1)
|
||||||
newPos = this.getTabs(this.mTabBrowser).snapshotLength - 1;
|
this.moveTabSubTreeTo(aChild, newPos);
|
||||||
}
|
|
||||||
this.moveTabSubTreeTo(aChild, newPos);
|
|
||||||
}, this);
|
}, this);
|
||||||
children = aTab.getAttribute(this.kCHILDREN);
|
children = aTab.getAttribute(this.kCHILDREN);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user