From b5287043f07d634d2e671a02e7ce6868212b4c63 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Fri, 16 Jul 1999 03:53:06 +0000 Subject: [PATCH] Fix for the annoying viewer/apprunner problem that wouldnt let you make a window small. --- widget/src/gtk/nsWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/gtk/nsWindow.cpp b/widget/src/gtk/nsWindow.cpp index 2e8dfe6aa19f..cc78ad3a5125 100644 --- a/widget/src/gtk/nsWindow.cpp +++ b/widget/src/gtk/nsWindow.cpp @@ -775,7 +775,8 @@ NS_METHOD nsWindow::Resize(PRUint32 aWidth, PRUint32 aHeight, PRBool aRepaint) { mShell->allocation.width = aWidth; mShell->allocation.height = aHeight; - gtk_widget_set_usize(mShell, aWidth, aHeight); + + gtk_window_set_default_size(GTK_WINDOW(mShell), aWidth, aHeight); } gtk_widget_set_usize(mWidget, aWidth, aHeight);