Partial whack at supporting more accurate max-element-size computations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user