mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 441470 - Bookmark lost when dragged within folder shortcuts menus, r=dietrich
This commit is contained in:
parent
2a4f1b3c4e
commit
1c77fcd712
@ -290,7 +290,8 @@
|
||||
|
||||
if (!xulNode.node) {
|
||||
// if we are dragging over a non places node drop at the end
|
||||
dropPoint.ip = new InsertionPoint(resultNode.itemId,
|
||||
dropPoint.ip = new InsertionPoint(
|
||||
PlacesUtils.getConcreteItemId(resultNode),
|
||||
-1,
|
||||
Ci.nsITreeView.DROP_ON);
|
||||
return dropPoint;
|
||||
@ -303,7 +304,7 @@
|
||||
// If the mouse is in the top 25% of the node,
|
||||
// drop above the folder.
|
||||
dropPoint.ip = new InsertionPoint(
|
||||
resultNode.itemId,
|
||||
PlacesUtils.getConcreteItemId(resultNode),
|
||||
-1,
|
||||
Ci.nsITreeView.DROP_BEFORE,
|
||||
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
||||
@ -326,7 +327,7 @@
|
||||
// This is a non-folder node or a readonly folder.
|
||||
// If the mouse is above the middle, drop above this item.
|
||||
dropPoint.ip = new InsertionPoint(
|
||||
resultNode.itemId,
|
||||
PlacesUtils.getConcreteItemId(resultNode),
|
||||
-1,
|
||||
Ci.nsITreeView.DROP_BEFORE,
|
||||
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
||||
@ -336,7 +337,7 @@
|
||||
|
||||
// Drop below the item.
|
||||
dropPoint.ip = new InsertionPoint(
|
||||
resultNode.itemId,
|
||||
PlacesUtils.getConcreteItemId(resultNode),
|
||||
-1,
|
||||
Ci.nsITreeView.DROP_AFTER,
|
||||
PlacesUtils.nodeIsTagQuery(xulNode.node),
|
||||
|
Loading…
Reference in New Issue
Block a user