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 2007-05-05 04:36:58 +00:00
Родитель cde78f4c3b
Коммит b1bd036d89
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;
}