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:
parent
475c4732e6
commit
d0163fda49
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user