now sets maxelement width/height

b=25541


git-svn-id: svn://10.0.0.236/trunk@67662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2000-04-30 13:27:49 +00:00
parent 113b269550
commit 600b95d39b
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;