Use SetMEWToActualWidth when we set the MEW to the actual width. b=331684 r+sr=bzbarsky

This commit is contained in:
dbaron%dbaron.org 2006-08-16 00:20:02 +00:00
parent 68eeed0630
commit 7ff576f023

View File

@ -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());
}
}