зеркало из https://github.com/mozilla/pjs.git
b=601545 don't move windows during resize r+a=roc
--HG-- extra : transplant_source : %C7%A4%F7%E1%E8t%EDa0Z%FC%92%99%D5%A1%13I%EC_%15
This commit is contained in:
Родитель
7863d5b2c1
Коммит
c9523e4978
|
@ -1096,11 +1096,11 @@ nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
|||
// Yep? Resize the window
|
||||
//Maybe, the toplevel has moved
|
||||
|
||||
// Note that if the widget needs to be shown because it
|
||||
// was previously insane in Resize(x,y,w,h), then we need
|
||||
// Note that if the widget needs to be positioned because its
|
||||
// size was previously insane in Resize(x,y,w,h), then we need
|
||||
// to set the x and y here too, because the widget wasn't
|
||||
// moved back then
|
||||
if (mIsTopLevel || mNeedsShow)
|
||||
if (mNeedsMove)
|
||||
NativeResize(mBounds.x, mBounds.y,
|
||||
mBounds.width, mBounds.height, aRepaint);
|
||||
else
|
||||
|
@ -1155,6 +1155,7 @@ nsWindow::Resize(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight,
|
|||
mBounds.y = aY;
|
||||
mBounds.SizeTo(GetSafeWindowSize(nsIntSize(aWidth, aHeight)));
|
||||
|
||||
mNeedsMove = PR_TRUE;
|
||||
mPlaced = PR_TRUE;
|
||||
|
||||
if (!mCreated)
|
||||
|
@ -1198,7 +1199,6 @@ nsWindow::Resize(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight,
|
|||
}
|
||||
else {
|
||||
mNeedsResize = PR_TRUE;
|
||||
mNeedsMove = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче