persistent size now has a lower bound of 100x100. bug 167663 r=dveditz,sgehani

This commit is contained in:
danm%netscape.com 2002-11-20 00:54:46 +00:00
parent c79e9457e0
commit f2b9f074d2

View File

@ -939,7 +939,7 @@ PRBool nsXULWindow::LoadSizeFromXUL()
PRInt32 errorCode;
PRInt32 temp;
GetPosition(&currWidth, &currHeight);
GetSize(&currWidth, &currHeight);
// Obtain the position and sizing information from the <xul:window> element.
PRInt32 specWidth = currWidth;
@ -950,7 +950,7 @@ PRBool nsXULWindow::LoadSizeFromXUL()
if (NS_SUCCEEDED(rv)) {
temp = sizeString.ToInteger(&errorCode);
if (NS_SUCCEEDED(errorCode) && temp > 0) {
specWidth = temp;
specWidth = temp > 100 ? temp : 100;
gotSize = PR_TRUE;
}
}
@ -958,7 +958,7 @@ PRBool nsXULWindow::LoadSizeFromXUL()
if (NS_SUCCEEDED(rv)) {
temp = sizeString.ToInteger(&errorCode);
if (NS_SUCCEEDED(errorCode) && temp > 0) {
specHeight = temp;
specHeight = temp > 100 ? temp : 100;
gotSize = PR_TRUE;
}
}