Partial whack at supporting more accurate max-element-size computations

This commit is contained in:
kipp@netscape.com
1998-12-17 18:55:42 +00:00
parent 143ff5f55f
commit 4583f033dd
12 changed files with 16 additions and 14 deletions

View File

@@ -618,8 +618,7 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext& aPresContext,
// adjust our max element size, if necessary
if (aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width += borderPadding.left + borderPadding.right;
aDesiredSize.maxElementSize->height += borderPadding.top + borderPadding.bottom;
aDesiredSize.AddBorderPaddingToMaxElementSize(borderPadding);
}
// if we are constrained and the child is smaller, use the constrained values