Bug 287592. Make buttons return the correct overflow area from reflow. r+sr=dbaron
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user