Updating popups to use screen coordinates instead of being hardcoded to (50,50).

This commit is contained in:
hyatt%netscape.com 1999-06-09 08:00:27 +00:00
Родитель cb12cfde0e
Коммит 33a14549b5
2 изменённых файлов: 6 добавлений и 12 удалений

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

@ -259,13 +259,10 @@ XULPopupListenerImpl::LaunchPopup(nsIDOMEvent* anEvent)
return NS_OK;
}
PRInt32 xPos;
PRInt32 yPos;
uiEvent->GetScreenX(&xPos);
PRInt32 xPos, yPos;
uiEvent->GetScreenX(&xPos);
uiEvent->GetScreenY(&yPos);
xPos = 50; // For now, hardcode to (50,50), since screen doesn't work.
yPos = 50;
domWindow->CreatePopup(element, popupContent,
xPos, yPos,
type, popupAlignment);

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

@ -259,13 +259,10 @@ XULPopupListenerImpl::LaunchPopup(nsIDOMEvent* anEvent)
return NS_OK;
}
PRInt32 xPos;
PRInt32 yPos;
uiEvent->GetScreenX(&xPos);
PRInt32 xPos, yPos;
uiEvent->GetScreenX(&xPos);
uiEvent->GetScreenY(&yPos);
xPos = 50; // For now, hardcode to (50,50), since screen doesn't work.
yPos = 50;
domWindow->CreatePopup(element, popupContent,
xPos, yPos,
type, popupAlignment);