fix for 66823. we weren't correctly setting the port before calling LocalToGlobal, which would cause ::MoveWindow() to be skipped in some situations (2nd browser window). r=danm/sr=ben.

This commit is contained in:
pinkerton%netscape.com 2001-01-28 02:12:58 +00:00
Родитель 9263159608
Коммит ac923ebfb8
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -32,6 +32,7 @@
#include "nsIDragSessionMac.h"
#include "nsGUIEvent.h"
#include "nsCarbonHelpers.h"
#include "nsGFXUtils.h"
#include <Quickdraw.h>
@ -667,7 +668,8 @@ NS_IMETHODIMP nsMacWindow::ConstrainPosition(PRInt32 *aX, PRInt32 *aY)
//-------------------------------------------------------------------------
NS_IMETHODIMP nsMacWindow::Move(PRInt32 aX, PRInt32 aY)
{
StPortSetter setOurPortForLocalToGlobal ( mWindowPtr );
if (eWindowType_popup == mWindowType) {
PRInt32 xOffset=0,yOffset=0;
nsRect localRect,globalRect;