Bug 923439 - bustage fix for wrong dragValue, rs=me

--HG--
extra : rebase_source : dff785523b1f78f63cf4fb24455a0dce8f35361e
This commit is contained in:
Gijs Kruitbosch 2013-10-15 18:20:04 +02:00
parent 02dc49aa4b
commit 98b9aa47ba

View File

@ -796,12 +796,12 @@ CustomizeMode.prototype = {
let dragOverItem, dragValue;
if (targetNode == targetArea.customizationTarget) {
dragOverItem = targetNode.lastChild;
dragValue = "end";
dragValue = "after";
} else {
let position = Array.indexOf(targetParent.children, targetNode);
if (position == -1) {
dragOverItem = targetParent.lastChild;
dragValue = "end";
dragValue = "after";
} else {
dragOverItem = targetParent.children[position];
// Check if the aDraggedItem is hovered past the first half of dragOverItem