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:
kipp%netscape.com
1999-03-25 03:48:30 +00:00
parent e457c12b03
commit 75458d92cb
2 changed files with 8 additions and 6 deletions

View File

@@ -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;
}
}