mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 519186 - drag & drop in bookmarks menu does not correctly update the view, r=mano
This is a regression from bug 498130.
This commit is contained in:
parent
d060c11dd3
commit
3ab79457e6
@ -725,8 +725,7 @@
|
||||
let popup = parentElt.firstChild;
|
||||
|
||||
let index = popup._startMarker + 1 + aIndex;
|
||||
let before = popup.childNodes[index] || null;
|
||||
this._self.insertNewItem(aNode, popup, before);
|
||||
this._self.insertNewItem(aNode, popup, popup.childNodes[index]);
|
||||
if (popup._emptyMenuItem)
|
||||
popup._emptyMenuItem.hidden = true;
|
||||
},
|
||||
@ -777,8 +776,9 @@
|
||||
|
||||
// Move the node.
|
||||
let popup = nodeElt.parentNode;
|
||||
let index = popup._startMarker + 1 + aNewIndex;
|
||||
popup.removeChild(nodeElt);
|
||||
popup.insertBefore(nodeElt, popup.childNodes[aNewIndex]);
|
||||
popup.insertBefore(nodeElt, popup.childNodes[index]);
|
||||
},
|
||||
|
||||
nodeTitleChanged: function PMV__nodeTitleChanged(aNode, aNewTitle) {
|
||||
|
Loading…
Reference in New Issue
Block a user