update widget position member variable when window is moved for any reason. r=bryner,ere bug 224760, 223901

This commit is contained in:
danm-moz%comcast.net 2003-11-14 21:58:08 +00:00
parent d099f19623
commit cc404f7b11

View File

@ -4905,6 +4905,9 @@ void nsWindow::OnDestroy()
//-------------------------------------------------------------------------
PRBool nsWindow::OnMove(PRInt32 aX, PRInt32 aY)
{
mBounds.x = aX;
mBounds.y = aY;
nsGUIEvent event;
InitEvent(event, NS_MOVE);
event.point.x = aX;