Bug 287592. Make buttons return the correct overflow area from reflow. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@171416 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2005-03-31 02:19:48 +00:00
parent 0d8ccdde42
commit c504b2c5ee
2 changed files with 5 additions and 4 deletions

View File

@@ -488,8 +488,9 @@ nsHTMLButtonControlFrame::Reflow(nsPresContext* aPresContext,
aDesiredSize.ascent += aReflowState.mComputedBorderPadding.top + focusPadding.top;
aDesiredSize.descent = aDesiredSize.height - aDesiredSize.ascent;
nsRect buttonRect(0, 0, aDesiredSize.width, aDesiredSize.height);
FinishAndStoreOverflow(&buttonRect, buttonRect.Size());
aDesiredSize.mOverflowArea = nsRect(0, 0, aDesiredSize.width, aDesiredSize.height);
ConsiderChildOverflow(aDesiredSize.mOverflowArea, firstKid);
FinishAndStoreOverflow(&aDesiredSize);
aStatus = NS_FRAME_COMPLETE;