ドロップしたタブの並び順が壊れる問題に再対処
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4924 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
305eb6d790
commit
f28a400047
@ -2558,7 +2558,11 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
var sourceWindow = aDraggedTab.ownerDocument.defaultView;
|
var sourceWindow = aDraggedTab.ownerDocument.defaultView;
|
||||||
var sourceBrowser = this.getTabBrowserFromChild(aDraggedTab);
|
var sourceBrowser = this.getTabBrowserFromChild(aDraggedTab);
|
||||||
|
|
||||||
while (aInfo.insertBefore && draggedTabs.indexOf(aInfo.insertBefore) > -1)
|
var draggedWholeTree = [].concat(draggedRoots);
|
||||||
|
draggedRoots.forEach(function(aRoot) {
|
||||||
|
draggedWholeTree = draggedWholeTree.concat(this.getDescendantTabs(aRoot));
|
||||||
|
}, this);
|
||||||
|
while (aInfo.insertBefore && draggedWholeTree.indexOf(aInfo.insertBefore) > -1)
|
||||||
{
|
{
|
||||||
aInfo.insertBefore = this.getNextTab(aInfo.insertBefore);
|
aInfo.insertBefore = this.getNextTab(aInfo.insertBefore);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user