ルートのタブの並び順が壊れることがあったのを修正
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) ;
|
||||
if (nextTab == this.getNextSiblingTab(aChild)) return;
|
||||
|
||||
let newPos;
|
||||
let newPos = -1;
|
||||
if (nextTab) {
|
||||
newPos = nextTab._tPos;
|
||||
if (newPos > aChild._tPos) newPos--;
|
||||
}
|
||||
else {
|
||||
newPos = this.getTabs(this.mTabBrowser).snapshotLength - 1;
|
||||
}
|
||||
this.moveTabSubTreeTo(aChild, newPos);
|
||||
if (newPos > -1)
|
||||
this.moveTabSubTreeTo(aChild, newPos);
|
||||
}, this);
|
||||
children = aTab.getAttribute(this.kCHILDREN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user