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

git-svn-id: svn://10.0.0.236/trunk@16589 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-12-17 18:55:42 +00:00
parent c84da05ca6
commit 396fe5cf50
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