From ea740a951918ba5fdbb599e99c4b9e04173882f1 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 16 Aug 2006 17:49:03 +0000 Subject: [PATCH] Use SetMEWToActualWidth when we set the MEW to the actual width. b=331684 r+sr=bzbarsky a=beltzner git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@207601 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsObjectFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/generic/nsObjectFrame.cpp b/mozilla/layout/generic/nsObjectFrame.cpp index 6560d482e86..0f43260376c 100644 --- a/mozilla/layout/generic/nsObjectFrame.cpp +++ b/mozilla/layout/generic/nsObjectFrame.cpp @@ -952,7 +952,7 @@ nsObjectFrame::GetDesiredSize(nsPresContext* aPresContext, aMetrics.ascent = aMetrics.height; if (aMetrics.mComputeMEW) { - aMetrics.mMaxElementWidth = aMetrics.width; + aMetrics.SetMEWToActualWidth(aReflowState.mStylePosition->mWidth.GetUnit()); } }