Bug 243720. Dragging stuff into menus should use screenX to avoid ambiguous semantics of clientX in popups. r+sr=neil

This commit is contained in:
roc+%cs.cmu.edu 2004-07-17 12:25:46 +00:00
parent 2af954109f
commit af7e7a52a6

View File

@ -212,15 +212,15 @@ var BookmarksMenu = {
case "toolbarseparator":
case "toolbarbutton":
size = overButtonBoxObject.width;
coordValue = overButtonBoxObject.x;
coordValue = overButtonBoxObject.clientX;
clientCoordValue = aEvent.clientX;
break;
case "menuseparator":
case "menu":
case "menuitem":
size = overButtonBoxObject.height;
coordValue = overButtonBoxObject.y-overParentBoxObject.y;
clientCoordValue = aEvent.clientY;
coordValue = overButtonBoxObject.screenY;
clientCoordValue = aEvent.screenY;
break;
default: return BookmarksUtils.DROP_ON;
}