From 29d7ccb375c01c554fbd3bcec743fdc0e1656289 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Wed, 26 Jan 2000 02:08:02 +0000 Subject: [PATCH] fix for bug 25026 where context menus wouldn't show up on input fields because the refpoint part of the nsEvent was never copied from the clientX/Y of the nsIDOMEvent passed to us. r=akkana. --- layout/html/forms/src/nsGfxTextControlFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/html/forms/src/nsGfxTextControlFrame.cpp b/layout/html/forms/src/nsGfxTextControlFrame.cpp index cfb716c2fc18..ea38276db5ab 100644 --- a/layout/html/forms/src/nsGfxTextControlFrame.cpp +++ b/layout/html/forms/src/nsGfxTextControlFrame.cpp @@ -3503,6 +3503,8 @@ nsEnderEventListener::DispatchMouseEvent(nsIDOMMouseEvent *aEvent, PRInt32 aEven aEvent->GetCtrlKey(&(event.isControl)); aEvent->GetAltKey(&(event.isAlt)); aEvent->GetMetaKey(&(event.isMeta)); + aEvent->GetClientX(&(event.refPoint.x)); + aEvent->GetClientY(&(event.refPoint.y)); PRUint16 clickCount; aEvent->GetClickCount(&clickCount);