From bf7e14549f38b66f610640fcdc9db18742180cf7 Mon Sep 17 00:00:00 2001 From: michaelp Date: Thu, 23 Apr 1998 21:51:03 +0000 Subject: [PATCH] removed conditional calling of view->SetDimensions() in SizeTo(). --- layout/base/src/nsFrame.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layout/base/src/nsFrame.cpp b/layout/base/src/nsFrame.cpp index b43997e2b482..648481263fe2 100644 --- a/layout/base/src/nsFrame.cpp +++ b/layout/base/src/nsFrame.cpp @@ -273,7 +273,13 @@ NS_METHOD nsFrame::MoveTo(nscoord aX, nscoord aY) NS_METHOD nsFrame::SizeTo(nscoord aWidth, nscoord aHeight) { - if ((aWidth != mRect.width) || (aHeight != mRect.height)) { + //I have commented out this if test since we really need to + //always pass the fact that a resize was attempted to the + //view system. Today is 23-apr-98. If this change still looks + //good on or after 23-may-98, I'll kill the commented code + //altogether. Pretty scientific, huh? MMP + +// if ((aWidth != mRect.width) || (aHeight != mRect.height)) { mRect.width = aWidth; mRect.height = aHeight; @@ -281,7 +287,7 @@ NS_METHOD nsFrame::SizeTo(nscoord aWidth, nscoord aHeight) if (nsnull != mView) { mView->SetDimensions(aWidth, aHeight); } - } +// } return NS_OK; }