mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
persistent size now has a lower bound of 100x100. bug 167663 r=dveditz,sgehani
This commit is contained in:
parent
c79e9457e0
commit
f2b9f074d2
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user