Passing the popup alignment info along.

git-svn-id: svn://10.0.0.236/trunk@34397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
1999-06-09 09:24:10 +00:00
parent c36988d177
commit eb3ae6604b
2 changed files with 5 additions and 3 deletions

View File

@@ -859,7 +859,8 @@ void nsWebShellWindow::DoContextMenu(
nsIDOMNode * aMenuNode,
nsIWidget * aParentWindow,
PRInt32 aX,
PRInt32 aY)
PRInt32 aY,
const nsString& aPopupAlignment)
{
if (aMenuNode) {
nsIContextMenu * pnsContextMenu;
@@ -1078,7 +1079,7 @@ nsWebShellWindow::CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupCont
if (tagName == "menu") {
// XXX Need to distinguish between popup menus and context menus?
DoContextMenu(nsnull, rootElement, mWindow, aXPos, aYPos);
DoContextMenu(nsnull, rootElement, mWindow, aXPos, aYPos, aPopupAlignment);
// Fire the DESTRUCT DOM event to give JS/C++ a chance to destroy the popup contents
nsEventStatus status = nsEventStatus_eIgnore;