rem: gCurrentDragOverItem = null; if (aEvent.clientX > (dropTargetX + (dropTargetWidth / 2))) { 
add: var direction = window.getComputedStyle(dropTarget.parentNode, null).direction; var dropTargetCenter = dropTarget.boxObject.x + (dropTarget.boxObject.width / 2); if (direction == "ltr") dragAfter = aEvent.clientX > dropTargetCenter; else dragAfter = aEvent.clientX < dropTargetCenter;  if (dragAfter) { 
context:   onDragOver: function (aEvent, aFlavour, aDragSession)  {    var toolbar = aEvent.target;    var dropTarget = aEvent.target;    while (toolbar && toolbar.localName != "toolbar") {      dropTarget = toolbar;      toolbar = toolbar.parentNode;    }        var previousDragItem = gCurrentDragOverItem;    // Make sure we are dragging over a customizable toolbar.    if (!isCustomizableToolbar(toolbar)) {      gCurrentDragOverItem = null;      return;    }        if (dropTarget.localName == "toolbar") {      gCurrentDragOverItem = dropTarget;    } else {      var dropTargetWidth = dropTarget.boxObject.width;      var dropTargetX = dropTarget.boxObject.x;      gCurrentDragOverItem = null;      if (aEvent.clientX > (dropTargetX + (dropTargetWidth / 2))) {        gCurrentDragOverItem = dropTarget.nextSibling;        if (!gCurrentDragOverItem)          gCurrentDragOverItem = toolbar;      } else        gCurrentDragOverItem = dropTarget;    }        if (previousDragItem && gCurrentDragOverItem != previousDragItem) {      setDragActive(previousDragItem, false);    }        setDragActive(gCurrentDragOverItem, true);        aDragSession.canDrop = true;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b1c4d0170a90a061c4982a1c4bc3a8f3b84ba365/customizeToolbar.js/buggy/mail/base/content/customizeToolbar.js