now sets maxelement width/height

b=25541
This commit is contained in:
rods@netscape.com
2000-04-30 13:27:49 +00:00
parent 178bdfca0a
commit 144420f146
2 changed files with 8 additions and 0 deletions

View File

@@ -687,6 +687,10 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext* aPresContext,
aDesiredSize.ascent = aDesiredSize.height;
aDesiredSize.descent = 0;
if (nsnull != aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = aDesiredSize.width;
aDesiredSize.maxElementSize->height = aDesiredSize.height;
}
aStatus = NS_FRAME_COMPLETE;