From ca515cb7a38e90f9a6251e3fa623597a8ee35fe1 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 6 Jul 1999 21:32:44 +0000 Subject: [PATCH] temporary fix for the "window is 1x1 and blank on startup" problem. hyatt / pavlov are working on a better fix. git-svn-id: svn://10.0.0.236/trunk@38416 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsAppShellService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/xpfe/appshell/src/nsAppShellService.cpp b/mozilla/xpfe/appshell/src/nsAppShellService.cpp index 28f3243da7d..2269a9c34fc 100644 --- a/mozilla/xpfe/appshell/src/nsAppShellService.cpp +++ b/mozilla/xpfe/appshell/src/nsAppShellService.cpp @@ -496,6 +496,7 @@ nsAppShellService::CreateTopLevelWindow(nsIWebShellWindow *aParent, nsWidgetInitData widgetInitData; widgetInitData.mBorderStyle = eBorderStyle_window; +#ifndef XP_UNIX if (aInitialWidth == NS_SIZETOCONTENT || aInitialHeight == NS_SIZETOCONTENT) { aInitialWidth = 1; @@ -503,6 +504,7 @@ nsAppShellService::CreateTopLevelWindow(nsIWebShellWindow *aParent, showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out. window->SetIntrinsicallySized(PR_TRUE); } +#endif rv = window->Initialize((nsIWebShellWindow *) nsnull, mAppShell, aUrl, anObserver, aCallbacks, @@ -556,6 +558,7 @@ nsAppShellService::CreateDialogWindow(nsIWebShellWindow * aParent, nsWidgetInitData widgetInitData; widgetInitData.mBorderStyle = eBorderStyle_dialog; +#ifndef XP_UNIX if (aInitialWidth == NS_SIZETOCONTENT || aInitialHeight == NS_SIZETOCONTENT) { aInitialWidth = 1; @@ -563,6 +566,7 @@ nsAppShellService::CreateDialogWindow(nsIWebShellWindow * aParent, showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out. window->SetIntrinsicallySized(PR_TRUE); } +#endif rv = window->Initialize((nsIWebShellWindow *) nsnull, mAppShell, aUrl, anObserver, aCallbacks,