frames with a percentage based width should report a 0 MEW bug 246999 r/sr=roc

This commit is contained in:
bmlk@gmx.de
2004-08-31 18:50:40 +00:00
parent b777f88c8e
commit 8bed280351
19 changed files with 70 additions and 28 deletions

View File

@@ -460,7 +460,7 @@ nsHTMLButtonControlFrame::Reflow(nsPresContext* aPresContext,
//aDesiredSize.height += aReflowState.mComputedBorderPadding.top + aReflowState.mComputedBorderPadding.bottom;
if (aDesiredSize.mComputeMEW) {
aDesiredSize.mMaxElementWidth = aDesiredSize.width;
aDesiredSize.SetMEWToActualWidth(aReflowState.mStylePosition->mWidth.GetUnit());
}
// Make sure we obey min/max-width and min/max-height