diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index 74ab8cf39d70..6f81db1455a0 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -660,7 +660,7 @@ nsObjectFrame::GetDesiredSize(nsPresContext* aPresContext, aMetrics.ascent = aMetrics.height; if (aMetrics.mComputeMEW) { - aMetrics.mMaxElementWidth = aMetrics.width; + aMetrics.SetMEWToActualWidth(aReflowState.mStylePosition->mWidth.GetUnit()); } }