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

This commit is contained in:
roc+@cs.cmu.edu
2005-03-31 02:19:48 +00:00
parent 4fe2ad7f26
commit 4d2971cfd7
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;