Keep the initial width and height from being 0. Set it to 1 instead.

git-svn-id: svn://10.0.0.236/trunk@38352 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
1999-07-05 16:53:43 +00:00
parent 9df3fac01f
commit 61ada8c492

View File

@@ -498,8 +498,8 @@ nsAppShellService::CreateTopLevelWindow(nsIWebShellWindow *aParent,
if (aInitialWidth == NS_SIZETOCONTENT ||
aInitialHeight == NS_SIZETOCONTENT) {
aInitialWidth = 0;
aInitialHeight = 0;
aInitialWidth = 1;
aInitialHeight = 1;
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
window->SetIntrinsicallySized(PR_TRUE);
}
@@ -558,8 +558,8 @@ nsAppShellService::CreateDialogWindow(nsIWebShellWindow * aParent,
if (aInitialWidth == NS_SIZETOCONTENT ||
aInitialHeight == NS_SIZETOCONTENT) {
aInitialWidth = 0;
aInitialHeight = 0;
aInitialWidth = 1;
aInitialHeight = 1;
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
window->SetIntrinsicallySized(PR_TRUE);
}