From 84222783bc90ab156c846dd0870784f2aab7a9ad Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Wed, 21 Oct 1998 20:02:36 +0000 Subject: [PATCH] Make sure that everything fits when wrapping is off; in addition give wrapped objects all the room that they want --- layout/html/base/src/nsInlineReflow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layout/html/base/src/nsInlineReflow.cpp b/layout/html/base/src/nsInlineReflow.cpp index 802e50cd5247..b3c8927c252f 100644 --- a/layout/html/base/src/nsInlineReflow.cpp +++ b/layout/html/base/src/nsInlineReflow.cpp @@ -410,6 +410,10 @@ nsInlineReflow::ComputeAvailableSize() mFrameAvailSize.height = mBottomEdge - pfd->mBounds.y - pfd->mMargin.bottom; } + if (mOuterReflowState.mNoWrap) { + mFrameAvailSize.width = mOuterReflowState.maxSize.width; + return PR_TRUE; + } // Give up now if there is no chance. Note that we allow a reflow if // the available space is zero because that way things that end up