From 775fdc526df7ce2feb436cb8cb365ad581f1f42e Mon Sep 17 00:00:00 2001 From: "michaelp@netscape.com" Date: Wed, 25 Nov 1998 02:52:04 +0000 Subject: [PATCH] fixed non-painting controls on certain resize operations in xpviewer. --- docshell/base/nsWebShell.cpp | 4 +++- webshell/src/nsWebShell.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index 87c87e220677..2f20696e5806 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -759,8 +759,10 @@ nsWebShell::SetBounds(PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h) mWindow->GetBorderSize(borderWidth, borderHeight); // Don't have the widget repaint. Layout will generate repaint requests // during reflow +// mWindow->Resize(x, y, w, h, +// PR_FALSE); mWindow->Resize(x, y, w, h, - PR_FALSE); + PR_TRUE); } // Set the size of the content area, which is the size of the window minus the borders diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index 87c87e220677..2f20696e5806 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -759,8 +759,10 @@ nsWebShell::SetBounds(PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h) mWindow->GetBorderSize(borderWidth, borderHeight); // Don't have the widget repaint. Layout will generate repaint requests // during reflow +// mWindow->Resize(x, y, w, h, +// PR_FALSE); mWindow->Resize(x, y, w, h, - PR_FALSE); + PR_TRUE); } // Set the size of the content area, which is the size of the window minus the borders