From 1401d9e382c9644068bb240f71cc22b8ce9ffe19 Mon Sep 17 00:00:00 2001 From: "pavlov%netscape.com" Date: Mon, 13 Sep 1999 20:30:36 +0000 Subject: [PATCH] change a few comments --- widget/src/gtk/nsWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/widget/src/gtk/nsWindow.cpp b/widget/src/gtk/nsWindow.cpp index 4877207ec9d..7b25f95c2e9 100644 --- a/widget/src/gtk/nsWindow.cpp +++ b/widget/src/gtk/nsWindow.cpp @@ -495,7 +495,7 @@ NS_IMETHODIMP nsWindow::Show(PRBool bState) mShown = bState; - // don't show if we are too big + // don't show if we are too small if (mIsTooSmall && bState == PR_FALSE) return NS_OK; @@ -642,7 +642,10 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint) mBounds.width = aWidth; mBounds.height = aHeight; - // ignore resizes smaller than or equal to 1x1 for everything except not-yet-shown toplevel windows + // code to keep the window from showing before it has been moved or resized + + // if we are resized to 1x1 or less, we will hide the window. Show(TRUE) will be ignored until a + // larger resize has happened if (aWidth <= 1 || aHeight <= 1) { if (mIsToplevel && mShell)