Made sure to subtract top margin from available height when paginated

git-svn-id: svn://10.0.0.236/trunk@58102 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 2000-01-18 15:39:38 +00:00
parent 475c4732e6
commit d0163fda49
2 changed files with 4 additions and 12 deletions

View File

@ -218,13 +218,9 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
// Adjust the available height if its constrained so that the
// child frame doesn't think it can reflow into its margin area.
// XXX write me
#if 0
availSpace.y += topMargin;
if (NS_UNCONSTRAINEDSIZE != availHeight) {
availSpace.height -= topMargin;
if (aApplyTopMargin && (NS_UNCONSTRAINEDSIZE != reflowState.availableHeight)) {
reflowState.availableHeight -= topMargin;
}
#endif
}
mTopMargin = topMargin;

View File

@ -218,13 +218,9 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
// Adjust the available height if its constrained so that the
// child frame doesn't think it can reflow into its margin area.
// XXX write me
#if 0
availSpace.y += topMargin;
if (NS_UNCONSTRAINEDSIZE != availHeight) {
availSpace.height -= topMargin;
if (aApplyTopMargin && (NS_UNCONSTRAINEDSIZE != reflowState.availableHeight)) {
reflowState.availableHeight -= topMargin;
}
#endif
}
mTopMargin = topMargin;