Tab Mix Plusで新しいタブを現在のタブの隣に開く設定に対する挙動で、新しく開かれるタブが現在のタブの階層より上位に配置されないようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5032 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-02 02:03:58 +00:00
parent b514106153
commit b2b49e2970

View File

@ -1737,8 +1737,13 @@ TreeStyleTabBrowser.prototype = {
newParent = prevParent;
}
else if (prevLevel > nextLevel) { // moved to end of existing tree
var realDelta = Math.abs(aTab._tPos - aOldPosition);
newParent = realDelta < 2 ? prevParent : (parent || nextParent) ;
if (this.mTabBrowser.selectedTab != aTab) { // maybe newly opened tab
newParent = prevParent;
}
else { // maybe drag and drop
var realDelta = Math.abs(aTab._tPos - aOldPosition);
newParent = realDelta < 2 ? prevParent : (parent || nextParent) ;
}
}
else if (prevLevel < nextLevel) { // moved to first child position of existing tree
newParent = parent || nextParent;