Fixed up area frame sizing calculations to properly compute the final height
git-svn-id: svn://10.0.0.236/trunk@25049 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -518,11 +518,12 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
|
||||
// frame has a height specified by CSS then we don't do this!
|
||||
if ((NS_UNCONSTRAINEDSIZE == reflowState.computedHeight) &&
|
||||
(NS_FRAME_OUTSIDE_CHILDREN & mState)) {
|
||||
nscoord contentYMost = aDesiredSize.height -
|
||||
aReflowState.mComputedBorderPadding.bottom;
|
||||
nscoord contentYMost = aDesiredSize.height;
|
||||
nscoord yMost = aDesiredSize.mCombinedArea.YMost();
|
||||
if (yMost > contentYMost) {
|
||||
aDesiredSize.height += yMost - contentYMost;
|
||||
// retain the border+padding for this element after the bottom
|
||||
// most object.
|
||||
aDesiredSize.height = yMost;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user