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:
parent
b514106153
commit
b2b49e2970
@ -1737,9 +1737,14 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
newParent = prevParent;
|
newParent = prevParent;
|
||||||
}
|
}
|
||||||
else if (prevLevel > nextLevel) { // moved to end of existing tree
|
else if (prevLevel > nextLevel) { // moved to end of existing tree
|
||||||
|
if (this.mTabBrowser.selectedTab != aTab) { // maybe newly opened tab
|
||||||
|
newParent = prevParent;
|
||||||
|
}
|
||||||
|
else { // maybe drag and drop
|
||||||
var realDelta = Math.abs(aTab._tPos - aOldPosition);
|
var realDelta = Math.abs(aTab._tPos - aOldPosition);
|
||||||
newParent = realDelta < 2 ? prevParent : (parent || nextParent) ;
|
newParent = realDelta < 2 ? prevParent : (parent || nextParent) ;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (prevLevel < nextLevel) { // moved to first child position of existing tree
|
else if (prevLevel < nextLevel) { // moved to first child position of existing tree
|
||||||
newParent = parent || nextParent;
|
newParent = parent || nextParent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user