From ee443793e03fe1095ac2b76434c44d50a2b35b55 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 30 Oct 1998 21:43:16 +0000 Subject: [PATCH] Fixed ComputeDesiredSize() to make sure it includes the absolutely positioned items --- layout/html/base/src/nsBodyFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/html/base/src/nsBodyFrame.cpp b/layout/html/base/src/nsBodyFrame.cpp index 1ae480d0ce2..4c591a39e72 100644 --- a/layout/html/base/src/nsBodyFrame.cpp +++ b/layout/html/base/src/nsBodyFrame.cpp @@ -559,7 +559,9 @@ nsBodyFrame::ComputeDesiredSize(nsIPresContext& aPresContext, if ((0 == (NS_BODY_SHRINK_WRAP & mFlags)) && (NS_UNCONSTRAINEDSIZE != aMaxSize.width)) { // Make sure we're at least as wide as our available width - width = PR_MAX(aMetrics.width, aMaxSize.width); + if (aMaxSize.width > width) { + width = aMaxSize.width; + } } } if (aReflowState.HaveConstrainedHeight()) {