mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
bug 311136 - Tab dnd can confuse tabbrowser, r=vladimir
This commit is contained in:
parent
7009735701
commit
19e4ec716b
@ -1591,7 +1591,11 @@
|
||||
|
||||
aIndex = aIndex < aTab._tPos ? aIndex: aIndex+1;
|
||||
this.mCurrentTab.selected = false;
|
||||
this.mTabContainer.insertBefore(aTab, this.mTabContainer.childNodes[aIndex]);
|
||||
if (this.mTabContainer.childNodes.length == aIndex)
|
||||
this.mTabContainer.appendChild(aTab);
|
||||
else
|
||||
this.mTabContainer.insertBefore(aTab, this.mTabContainer.childNodes[aIndex]);
|
||||
|
||||
var i;
|
||||
for (i = 0; i < this.mTabContainer.childNodes.length; i++) {
|
||||
this.mTabContainer.childNodes[i]._tPos = i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user